Build an oversized automated arcade slot machine out of blackstone, gold, and quartz with spinning gem display reels, a moving lever, and jackpot fireworks.
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.
/scoreboard objectives add c9_timer dummy/scoreboard players set #tick c9_timer 0/fill ~-6 ~ ~-2 ~6 ~10 ~2 polished_blackstone/fill ~-5 ~1 ~-2 ~5 ~9 ~2 smooth_quartz/fill ~-4 ~2 ~-2 ~4 ~8 ~2 gold_block/fill ~-3 ~3 ~-2 ~3 ~7 ~2 air/fill ~-4 ~1 ~-3 ~4 ~1 ~3 smooth_quartz_slab/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]}}/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]}}/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]}}/scoreboard players add #tick c9_timer 1/execute if score #tick c9_timer matches 100.. run scoreboard players set #tick c9_timer 1/execute if score #tick c9_timer matches 1..15 run fill ~7 ~2 ~ ~8 ~8 ~ air/execute if score #tick c9_timer matches 1..15 run fill ~7 ~2 ~ ~7 ~4 ~ gold_block/execute if score #tick c9_timer matches 1..15 run fill ~7 ~4 ~ ~8 ~4 ~ redstone_block/execute if score #tick c9_timer matches 16..99 run fill ~7 ~2 ~ ~8 ~8 ~ air/execute if score #tick c9_timer matches 16..99 run fill ~7 ~4 ~ ~7 ~7 ~ gold_block/execute if score #tick c9_timer matches 16..99 run fill ~7 ~7 ~ ~8 ~8 ~ redstone_block/execute if score #tick c9_timer matches 1..30 as @e[tag=c9_r1] at @s run tp @s ~ ~ ~ ~25 ~35/execute if score #tick c9_timer matches 1..50 as @e[tag=c9_r2] at @s run tp @s ~ ~ ~ ~25 ~35/execute if score #tick c9_timer matches 1..70 as @e[tag=c9_r3] at @s run tp @s ~ ~ ~ ~25 ~35/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}/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}/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}/execute if score #tick c9_timer matches 70..95 run particle totem_of_undying ~ ~4 ~ 3.5 2.0 2.5 0.2 25 forcesetup #4 Layers concentric cuboids of polished blackstone, smooth quartz, and gold blocks, then carves out an open-air display window right through the middle so the reels are visible from both front and back.setup #8 Summons the first oversized block_display reel at 1.7x scale with full sky and block brightness so the gem block stays vivid even at night.loop #4 Animates the oversized gold and redstone lever on the right side of the slot machine pulling down during the first 15 ticks of each spin cycle.loop #9 Spins the three reels on staggered timers (ticks 1-30, 1-50, and 1-70) so they cascade and lock into place one after another.loop #14 Snaps the reels back to a flat rotation with diamond blocks and cyan glowing outlines before bursting totem particles across the machine for the jackpot.


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.
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.
/kill @e[tag=c9_ent]/fill ~-6 ~ ~-3 ~8 ~10 ~3 air/scoreboard objectives remove c9_timerSetting full brightness on the block_display entities ensures the diamond, emerald, and amethyst blocks never look dark or shadowed inside the slot machine frame.
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.
▶Victorian Carousel of Mythical BeastsMachines & MechanismsHard24 cmds
▶Victorian Phonograph Soundwave VisualizerMachines & MechanismsMedium24 cmds
▶Holographic Casino Roulette Ball SpinMachines & MechanismsMedium20 cmds
▶Holographic Pinball Machine Autonomous JackpotMachines & MechanismsHard24 cmds
▶Mechanical Fabergé Egg & Clockwork Swan RevealMachines & MechanismsHard24 cmds
▶Automated Jackpot ReelsMachines & MechanismsMedium24 cmds