CobbleFlip banner
CobbleFlip icon

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 objective cobbledollars and runs a house coin flip where Heads wins, Tails loses.
  • Economy integration is done entirely through commands: the mod tries to create the cobbledollars objective, seeds the player entry with scoreboard players add @s ... 0, checks balance via scoreboard players get, withdraws the stake with scoreboard players remove, and pays winnings with scoreboard 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 cobbledollars scoreboard objective; payouts rely on scoreboard integer ranges; no matchmaking between players—each flip is against the server house odds.