A giant gold and obsidian arcade cabinet plays itself. Glowing sea lantern rows slide across a black screen and lock into a tower, each with a burst of notes.
A tall arcade cabinet with an obsidian frame and a gold bezel stands in the middle of the stage, with a floating TOWER STACKER sign above it. On the black screen, a bright bar of three sea lanterns slides left and right, bounces off the gold edges and leaves a trail of end rod sparks.
Every second the bar locks into place with a chime and a burst of colourful note particles, and a new bar starts sliding on the row above. The tower grows row by row until it reaches the top, then the screen clears and the game starts again. The screen is a single wall of blocks, so you can watch it from the front or the back.
/scoreboard objectives add c9_t dummy/scoreboard objectives add c9_dir dummy/fill ~-8 ~ ~ ~8 ~18 ~ obsidian/fill ~-7 ~1 ~ ~7 ~17 ~ gold_block/fill ~-6 ~2 ~ ~6 ~16 ~ black_concrete/fill ~-2 ~2 ~ ~2 ~2 ~ sea_lantern/summon marker ~ ~3 ~ {Tags:["c9_m","c9_cur"]}/scoreboard players set @e[tag=c9_cur] c9_dir 1/summon text_display ~ ~19.5 ~ {Tags:["c9_m"],text:{"text":"TOWER STACKER","color":"gold","bold":true},billboard:"center",brightness:{sky:15,block:15},transformation:{left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f],translation:[0f,0f,0f],scale:[3f,3f,3f]}}/scoreboard players add @e[tag=c9_cur] c9_t 1/execute as @e[tag=c9_cur] at @s if block ~2 ~ ~ gold_block run scoreboard players set @s c9_dir -1/execute as @e[tag=c9_cur] at @s if block ~-2 ~ ~ gold_block run scoreboard players set @s c9_dir 1/execute as @e[tag=c9_cur,scores={c9_dir=1}] at @s run tp @s ~0.5 ~ ~/execute as @e[tag=c9_cur,scores={c9_dir=-1}] at @s run tp @s ~-0.5 ~ ~/execute as @e[tag=c9_cur] at @s run fill ~-7 ~ ~ ~7 ~ ~ black_concrete replace sea_lantern/execute as @e[tag=c9_cur] at @s run fill ~-1 ~ ~ ~1 ~ ~ sea_lantern replace black_concrete/execute as @e[tag=c9_cur] at @s run particle end_rod ~ ~0.5 ~ 1 0.3 0.6 0.01 3 force/execute as @e[tag=c9_cur,scores={c9_t=20..}] at @s run particle note ~ ~0.8 ~ 1.5 0.4 0.8 1 30 force/execute as @e[tag=c9_cur,scores={c9_t=20..}] at @s run playsound block.note_block.chime master @a ~ ~ ~ 1 1.2/execute as @e[tag=c9_cur,scores={c9_t=20..}] at @s run tp @s ~ ~1 ~/scoreboard players set @e[tag=c9_cur,scores={c9_t=20..}] c9_t 0/execute as @e[tag=c9_cur] at @s if block ~ ~ ~ gold_block run fill ~-13 ~-15 ~ ~13 ~-1 ~ black_concrete replace sea_lantern/execute as @e[tag=c9_cur] at @s if block ~ ~ ~ gold_block run tp @s ~ ~-15 ~setup #3 The cabinet is one wall: obsidian outside, a gold bezel inside it and a black concrete screen in the middle. Because it is only one block thick, the lanterns can be seen from both sides.setup #7 An invisible marker tagged <code>c9_cur</code> is the slider. It drives the whole game, and its position is the centre of the moving bar.loop #2 When the block two steps to the side of the marker is gold, the bar has reached the edge, so its <code>c9_dir</code> score flips and it bounces back. The gold bezel is never removed, so the bounce always works.loop #4 The marker moves half a block per tick, which is one block every two ticks. This speed is easy to follow on camera.loop #6 The current row is wiped with <code>replace sea_lantern</code>, and then three lanterns are drawn at the marker with <code>replace black_concrete</code>. Only lanterns and screen blocks are changed, so the frame stays intact.loop #9 Every 20 ticks the bar locks in place: note particles burst out, a chime plays and the marker moves up one row. The lanterns it leaves behind become part of the tower.loop #13 When the marker reaches the gold top edge, the whole screen is cleared and the marker drops back to the bottom row, so the game loops forever.


Recorded on our own test server: 49 frames at about 8.0 fps. Our image check saw: A tall obsidian-framed cabinet with a gold block bezel and black screen holds staggered stacked rows of three sea lanterns, with white end-rod-like sparks and faint particles, new bars appearing higher across frames; no sign or colourful note particles are visible.
Commands, video and screenshots: tested and recorded by www.9minecraft.net © 9Minecraft. Sharing a video or screenshot? Please credit www.9minecraft.net.
To let a player play it, replace the automatic lock with a button press. Remove the scores={c9_t=20..} condition from the lock commands, put those three commands (particle, playsound, tp up) in a chain started by an impulse command block, and wire a stone button to it. The bar then keeps sliding until the player presses the button.
/fill ~-8 ~ ~ ~8 ~18 ~ air/kill @e[tag=c9_m]/scoreboard objectives remove c9_t/scoreboard objectives remove c9_dirOlder versions cleared the whole row with air, which also erased the gold edges, so the bar never bounced and flew off the screen. This version only replaces sea lanterns, so the frame stays put.
Yes. Change the <code>20..</code> in the lock commands to a smaller number to lock rows faster, or a bigger number to lock them slower. Changing the <code>0.5</code> in the tp commands changes how fast the bar slides.
▶Abyssal Anglerfish Lure AmbushMagic & SpellsHard21 cmds
▶Alchemical Alembic Distillation Wave SpawnerMini-games & UtilitiesHard24 cmds
▶Alchemical Gold-Transmutation Midas ScepterWands, Weapons & ToolsMedium21 cmds
▶Alchemical Rattle-Drum Thunder InvocationMagic & SpellsMedium24 cmds
▶Animated House Build TimelapseHolograms & Display EntitiesMedium18 cmds
▶Animated Dual Helix Sine Wave VisualizerHolograms & Display EntitiesMedium21 cmds