Autonomous Cascading Jackpot Reels

Build an oversized automated arcade slot machine out of blackstone, gold, and quartz with spinning gem display reels, a moving lever, and jackpot fireworks.

Java EditionHolograms & Display EntitiesMedium25 commandsTested on a real 26.2 & 26.3 server
A giant Minecraft slot machine displays three glowing diamond blocks with celebratory green particles. Download the GIF Video & GIF © www.9minecraft.net

Machines & MechanismsCelebrationRoyalTechnologyGoldBlackCyanServer LobbyMini-gameDecorationBlock displaysBlock building (fill/setblock/clone)Glowing outlinesRotation math21+ commands

This command creation builds a massive 4-sided arcade slot machine out of polished blackstone, gold blocks, and smooth quartz right at the center of your world. Driven by a scoreboard timer, the giant redstone side lever pulls down automatically while three glowing gem display reels spin and cycle through emerald, gold, and amethyst before locking onto a triple diamond jackpot.

Because the display windows are open on both the front and back of the cabinet, the bright gem reels and golden payout particle showers are clearly visible from any angle.

1. Setup - type these once 10 commands

  1. /scoreboard objectives add c9_timer dummy
  2. /scoreboard players set #tick c9_timer 0
  3. /fill ~-6 ~ ~-2 ~6 ~10 ~2 polished_blackstone
  4. /fill ~-5 ~1 ~-2 ~5 ~9 ~2 smooth_quartz
  5. /fill ~-4 ~2 ~-2 ~4 ~8 ~2 gold_block
  6. /fill ~-3 ~3 ~-2 ~3 ~7 ~2 air
  7. /fill ~-4 ~1 ~-3 ~4 ~1 ~3 smooth_quartz_slab
  8. /summon block_display ~-2.4 ~5 ~ {Tags:["c9_ent","c9_reel","c9_r1"],Glowing:1b,glow_color_override:65535,brightness:{sky:15,block:15},block_state:{Name:"minecraft:diamond_block"},transformation:{translation:[-0.85f,-0.85f,-0.85f],scale:[1.7f,1.7f,1.7f],left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f]}}
  9. /summon block_display ~ ~5 ~ {Tags:["c9_ent","c9_reel","c9_r2"],Glowing:1b,glow_color_override:65535,brightness:{sky:15,block:15},block_state:{Name:"minecraft:emerald_block"},transformation:{translation:[-0.85f,-0.85f,-0.85f],scale:[1.7f,1.7f,1.7f],left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f]}}
  10. /summon block_display ~2.4 ~5 ~ {Tags:["c9_ent","c9_reel","c9_r3"],Glowing:1b,glow_color_override:65535,brightness:{sky:15,block:15},block_state:{Name:"minecraft:gold_block"},transformation:{translation:[-0.85f,-0.85f,-0.85f],scale:[1.7f,1.7f,1.7f],left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f]}}

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

  1. /scoreboard players add #tick c9_timer 1
  2. /execute if score #tick c9_timer matches 100.. run scoreboard players set #tick c9_timer 1
  3. /execute if score #tick c9_timer matches 1..15 run fill ~7 ~2 ~ ~8 ~8 ~ air
  4. /execute if score #tick c9_timer matches 1..15 run fill ~7 ~2 ~ ~7 ~4 ~ gold_block
  5. /execute if score #tick c9_timer matches 1..15 run fill ~7 ~4 ~ ~8 ~4 ~ redstone_block
  6. /execute if score #tick c9_timer matches 16..99 run fill ~7 ~2 ~ ~8 ~8 ~ air
  7. /execute if score #tick c9_timer matches 16..99 run fill ~7 ~4 ~ ~7 ~7 ~ gold_block
  8. /execute if score #tick c9_timer matches 16..99 run fill ~7 ~7 ~ ~8 ~8 ~ redstone_block
  9. /execute if score #tick c9_timer matches 1..30 as @e[tag=c9_r1] at @s run tp @s ~ ~ ~ ~25 ~35
  10. /execute if score #tick c9_timer matches 1..50 as @e[tag=c9_r2] at @s run tp @s ~ ~ ~ ~25 ~35
  11. /execute if score #tick c9_timer matches 1..70 as @e[tag=c9_r3] at @s run tp @s ~ ~ ~ ~25 ~35
  12. /execute if score #tick c9_timer matches 5 as @e[tag=c9_reel] run data merge entity @s {block_state:{Name:"minecraft:emerald_block"},glow_color_override:65280}
  13. /execute if score #tick c9_timer matches 20 as @e[tag=c9_reel] run data merge entity @s {block_state:{Name:"minecraft:amethyst_block"},glow_color_override:16711935}
  14. /execute if score #tick c9_timer matches 30..75 as @e[tag=c9_reel] at @s run data merge entity @s {Rotation:[0f,0f],block_state:{Name:"minecraft:diamond_block"},glow_color_override:65535}
  15. /execute if score #tick c9_timer matches 70..95 run particle totem_of_undying ~ ~4 ~ 3.5 2.0 2.5 0.2 25 force

How it works

Frames from the test run

Autonomous Cascading Jackpot Reels - frame 1Autonomous Cascading Jackpot Reels - frame 2Autonomous Cascading Jackpot Reels - frame 3

Recorded on our own test server: 47 frames at about 7.8 fps. Our image check saw: A large slot machine made of blackstone, quartz, and gold blocks cycles through glowing emerald, amethyst, and gold reels as a side redstone lever moves, eventually landing on three glowing diamond blocks with green particles.

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 where you want the center of the arcade slot machine to appear.
  2. Run each of the 10 setup commands once in chat or inside impulse command blocks positioned at the machine center.
  3. Place a row of 14 repeating command blocks set to Always Active nearby.
  4. Paste one loop command into each repeating command block, making sure they execute positioned at the center of the slot machine.
  5. Watch the side lever automatically pull down every 5 seconds while the three giant gem reels spin and lock onto a diamond jackpot.

Use it with real players

To let players trigger spins manually instead of running on an automatic loop, place a stone button on the side of the machine and change the first loop command so it only increments #tick c9_timer when score #tick c9_timer matches 1..99. Have the button set #tick c9_timer to 1 when pressed.

Remove it again 3 commands

  1. /kill @e[tag=c9_ent]
  2. /fill ~-6 ~ ~-3 ~8 ~10 ~3 air
  3. /scoreboard objectives remove c9_timer

FAQ

Why do the reels use brightness:{sky:15,block:15}?

Setting full brightness on the block_display entities ensures the diamond, emerald, and amethyst blocks never look dark or shadowed inside the slot machine frame.

Can I change the blocks shown on the reels?

Yes, edit the block_state Name inside the loop data merge commands to any solid block ID such as gold_block, redstone_block, or lapis_block.

Commands used

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

Similar creations

Join 9Minecraft News & Guides