
CobbleFlip
Coinflip command /coinflip where people can list an amount of cobbledollars they want to wager (so it should check balance with a command, then use commands...
00—fabricServer1.21.1mod
CobbleFlip
- Server-side Fabric mod for 1.21.1 that registers
/coinflip <amount>for players. The command wagers CobbleDollars from the scoreboard objectivecobbledollarsand runs a house coin flip where Heads wins, Tails loses. - Economy integration is done entirely through commands: the mod tries to create the
cobbledollarsobjective, seeds the player entry withscoreboard players add @s ... 0, checks balance viascoreboard players get, withdraws the stake withscoreboard players remove, and pays winnings withscoreboard players add. - A brief action-bar animation shows “Heads...” then “Tails...” before announcing the landing side. Winners receive double their stake (clamped to the integer score limit); losers forfeit the wager.
- If the CobbleDollar objective is missing or the balance cannot be read, the command tells the player to have an admin inspect the scoreboard.
- Requires Fabric Loader/Fabric API on the server; no client installation is needed beyond a regular client that can join a Fabric server.
- Limitations: assumes CobbleDollars are tracked in the
cobbledollarsscoreboard objective; payouts rely on scoreboard integer ranges; no matchmaking between players—each flip is against the server house odds.