Giant Jackpot Slot Machine

Build a self-playing giant slot machine in Minecraft Java using display entities, spinning reels, golden jackpot coins, and celebratory fireworks.

Java EditionFireworks & Light ShowsMedium24 commandsTested on a real 26.2 & 26.3 server
A giant red and gold slot machine structure with three glowing cyan symbols in the center. Download the GIF Video & GIF © www.9minecraft.net

Confetti & CelebrationCelebrationRoyalGoldRedCyanMini-gameServer LobbyDecorationParticlesItem displaysFireworksScoreboard timersExecute chainsSummoned mobsBlock building (fill/setblock/clone)Glowing outlinesRotation math21+ commands

This command creation builds a giant, golden casino slot machine right in the center of your world. Using floating item display entities, three oversized reels spin through glowing symbols before locking into a triple-seven diamond jackpot one by one.

The moment all three reels lock in, the machine erupts with celebratory fireworks, a fountain of spinning gold coins, and glowing emerald rings. Everything runs automatically on a repeating timer without needing any mods or data packs.

1. Setup - type these once 10 commands

  1. /scoreboard objectives add c9_t dummy
  2. /fill ~-4 ~ ~-1 ~4 ~7 ~2 red_concrete
  3. /fill ~-4 ~ ~-1 ~4 ~1 ~2 gold_block
  4. /fill ~-4 ~7 ~-1 ~4 ~7 ~2 gold_block
  5. /fill ~-3 ~2 ~-1 ~3 ~5 ~-1 black_concrete
  6. /fill ~-3 ~6 ~-1 ~3 ~6 ~-1 glowstone
  7. /summon marker ~ ~ ~ {Tags:["c9_slot","c9_ctrl"]}
  8. /summon item_display ~-2 ~3.5 ~-1.3 {Tags:["c9_slot","c9_r1"],Glowing:1b,glow_color_override:65535,item:{id:"minecraft:diamond",count:1},transformation:{left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f],translation:[0f,0f,0f],scale:[1.8f,1.8f,1.8f]}}
  9. /summon item_display ~ ~3.5 ~-1.3 {Tags:["c9_slot","c9_r2"],Glowing:1b,glow_color_override:65535,item:{id:"minecraft:diamond",count:1},transformation:{left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f],translation:[0f,0f,0f],scale:[1.8f,1.8f,1.8f]}}
  10. /summon item_display ~2 ~3.5 ~-1.3 {Tags:["c9_slot","c9_r3"],Glowing:1b,glow_color_override:65535,item:{id:"minecraft:diamond",count:1},transformation:{left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f],translation:[0f,0f,0f],scale:[1.8f,1.8f,1.8f]}}

2. Loop - one repeating command block each (Always Active) 14 commands

  1. /scoreboard players add @e[tag=c9_ctrl] c9_t 1
  2. /execute if entity @e[tag=c9_ctrl,scores={c9_t=140..}] run scoreboard players set @e[tag=c9_ctrl] c9_t 0
  3. /execute if entity @e[tag=c9_ctrl,scores={c9_t=1..80}] as @e[tag=c9_slot,type=item_display] at @s run tp @s ~ ~ ~ ~36 ~
  4. /execute if entity @e[tag=c9_ctrl,scores={c9_t=20}] as @e[tag=c9_slot,type=item_display] run data modify entity @s item.id set value "minecraft:emerald"
  5. /execute if entity @e[tag=c9_ctrl,scores={c9_t=40}] as @e[tag=c9_slot,type=item_display] run data modify entity @s item.id set value "minecraft:golden_apple"
  6. /execute if entity @e[tag=c9_ctrl,scores={c9_t=55}] as @e[tag=c9_r1] at @s run tp @s ~ ~ ~ 0 0
  7. /execute if entity @e[tag=c9_ctrl,scores={c9_t=55}] as @e[tag=c9_r1] run data modify entity @s item.id set value "minecraft:diamond"
  8. /execute if entity @e[tag=c9_ctrl,scores={c9_t=68}] as @e[tag=c9_r2] at @s run tp @s ~ ~ ~ 0 0
  9. /execute if entity @e[tag=c9_ctrl,scores={c9_t=68}] as @e[tag=c9_r2] run data modify entity @s item.id set value "minecraft:diamond"
  10. /execute if entity @e[tag=c9_ctrl,scores={c9_t=80}] as @e[tag=c9_r3] at @s run tp @s ~ ~ ~ 0 0
  11. /execute if entity @e[tag=c9_ctrl,scores={c9_t=80}] as @e[tag=c9_r3] run data modify entity @s item.id set value "minecraft:diamond"
  12. /execute if entity @e[tag=c9_ctrl,scores={c9_t=81..130}] run particle dust{color:[1.0,0.85,0.0],scale:2.0} ~ ~3.5 ~-1.5 2.5 1.5 0.5 0 15 force
  13. /execute if entity @e[tag=c9_ctrl,scores={c9_t=81..125}] run summon item ~ ~1.8 ~-1.5 {Tags:["c9_slot","c9_coin"],Item:{id:"minecraft:gold_ingot",count:1},PickupDelay:32767,Age:5960,Motion:[0.0,0.5,-0.35]}
  14. /execute if entity @e[tag=c9_ctrl,scores={c9_t=82}] run summon firework_rocket ~-3 ~7 ~-1 {LifeTime:12,FireworksItem:{id:"minecraft:firework_rocket",count:1,components:{"minecraft:fireworks":{flight_duration:1,explosions:[{shape:"large_ball",has_twinkle:1b,colors:[I;16766720,65280],fade_colors:[I;16777215]}]}}}}

How it works

Frames from the test run

Giant Jackpot Slot Machine - frame 1Giant Jackpot Slot Machine - frame 2Giant Jackpot Slot Machine - frame 3

Recorded on our own test server: 59 frames at about 9.8 fps. Our image check saw: A large red and gold block structure representing a slot machine with three glowing cyan-outlined symbols spinning and locking in the center.

Commands, video and screenshots: tested and recorded by www.9minecraft.net © 9Minecraft. Sharing a video or screenshot? Please credit www.9minecraft.net.

Build it in your world

  1. Stand on a flat open area and run each command in the Setup list once in chat to build the slot machine cabinet and summon the three display reels.
  2. Place 14 Repeating Command Blocks set to Always Active near the machine (or connect one Repeating block into 13 Chain Command Blocks).
  3. Paste each command from the Loop list into its own command block in order.
  4. Note that the coordinates in the loop commands are relative to the center of the machine, so either place the command blocks right under the center or wrap their positions using execute positioned.
  5. Watch the reels spin through emeralds and golden apples before locking in three diamonds and showering the floor with gold coins and fireworks.

Use it with real players

To let players pull a lever instead of looping automatically, remove the second loop command that resets c9_t at 140, and attach a lever on the side of the machine to a command block running /scoreboard players set @e[tag=c9_ctrl] c9_t 1 whenever a player wants to spin.

Remove it again 3 commands

  1. /kill @e[tag=c9_slot]
  2. /fill ~-4 ~ ~-1 ~4 ~7 ~2 air
  3. /scoreboard objectives remove c9_t

FAQ

Will the gold coins overflowing from the machine lag my server?

No. Each summoned gold ingot has its Age set to 5960 ticks (out of 6000) and PickupDelay locked, so every coin disappears automatically after 2 seconds.

Can I change the symbols that appear on the reels?

Yes! Edit the item IDs inside the data modify loop commands from emerald, golden_apple, and diamond to any item ID you like, such as nether_star or tnt.

Commands used

/data/execute/fill/particle/scoreboard/summon/tp

Similar creations

Join 9Minecraft News & Guides