Villagers+ : Casino
Part 1 of the Villagers+ series (Maybe IDK if I'll get around to it)
Turn your survival world into a casino floor. Place a shelf and it's a slot machine. Place a Casino Table and a dealer villager appears behind it, ready to run Roulette and Blackjack. Everything is paid in emeralds, so it fits into the vanilla villager economy.
Everything is craftable in survival!
Features
Slot Machines
- Place a shelf and right-click to pull the lever. The three reels spin, then stop one by one.
- Sneak + right-click to change your bet (1, 2, 5, 10, 25 or 64 emeralds). The first change shows the paytable.
- Three of a kind pays big and two of a kind pays small. Symbols, weights and payouts are all configurable.
- Triple Nether Stars hit the jackpot. You get lightning, fireworks and a server-wide announcement.
- Big wins get extra fireworks and sound.
Roulette
- One shared table: everyone near the dealer plays the same spin.
- Click the emerald chip to cycle the chip size. Bet on single numbers or on outside bets (red/black, odd/even, dozens, columns and more).
- Left-click adds a chip and right-click takes one back.
- The first bet starts a countdown. When it ends the wheel spins and everyone is paid together.
- Single-zero wheel, 2.7% house edge.
Blackjack
- You against the dealer. Hit, Stand or Double Down.
- Blackjack pays 3:2, the dealer stands on 17 and there's an endless deck with no splits. WOW!
- Optional setting to make the dealer hit on soft 17.
Effects
Spinning reels, wheel and card sounds, particles, fireworks and lightning, all tied to what's happening at the table. Big wins feel big.
Crafting
| Item |
Recipe |
| Slot Machine |
E E E / R S R / E E E (E = emerald, R = redstone, S = any shelf) |
| Casino Table |
G E G / E C E / G E G (G = gold ingot, E = emerald, C = chest) |
Players find both recipes after joining. Admins can also hand them out with /casino give.
Built so nobody loses emeralds to a bug or a griefer
- Bets are taken the moment you place them and winnings go straight into your inventory. NICE!
- Full inventory? Your winnings are held and given to you next time you open a machine or dealer, or log in. Nothing is ever dropped on the floor.
- A machine or table can't be broken while money is live on it (reels spinning, wheel spinning, a hand in play).
- Explosions, fire and pistons never touch them. Only a player can remove one, and they get the item back.
- If a table is removed or the server stops mid-game, stakes are refunded.
- Logging out mid-hand settles it as if you stood. You get any winnings when you're back.
- Hoppers can't pull items out of slot machines, and the dealer can't be hurt.
The odds
Default slot payouts return about 94% over time, roulette has a flat 2.7% house edge, and blackjack is about 1% against good play. The house wins slowly, so it stays fun without draining anyone's emeralds.
Commands and permissions
| Command |
What it does |
/casino give <slot|table> [player] [amount] |
Give casino items (alias /vpc) |
/casino reload |
Reload config.yml (recipe changes need a restart) |
| Permission |
Default |
villagerscasino.play |
everyone: use slot machines and dealers |
villagerscasino.admin |
ops: /casino give and /casino reload |
Configuration
Everything lives in one commented config.yml:
- Turn the crafting recipes on or off.
- Set the dealer's name and villager profession.
- Choose which bets are offered for slots, roulette chips and blackjack.
- Change slot symbols, weights, pair and triple payouts, and which symbol is the jackpot.
- Set reel speed, the roulette betting timer, and the max total bet per round.
- Set the blackjack payout and the soft-17 rule.
- Turn jackpot broadcasts and the big-win threshold on or off.
Requirements
- A Spigot server version that has shelves (built and tested against 26.3).
- Java 25 for 26.x servers.
- Install by dropping the jar into
plugins/ and restarting. Don't use /reload.