Build a live top-down arcade labyrinth in Minecraft where a glowing yellow runner and four colorful ghosts automatically navigate neon walls and corridors.
SimulationsTechnologyCelebrationYellowRedCyanMini-gameServer LobbyDecorationBlock displaysSmooth animation (interpolation)Block building (fill/setblock/clone)Rotation math21+ commands
This command creation builds a top-down arcade maze directly on your stage. A glowing yellow chaser and four colored ghosts automatically detect walls, turn at intersections, and race through the corridors leaving bright particle trails behind them.
Using display entities with smooth teleport interpolation and directional block checks, the characters navigate the labyrinth completely on their own without any data packs or external plugins.
/scoreboard objectives add c9_t dummy/fill ~-9 ~ ~-9 ~9 ~ ~9 black_concrete/fill ~-9 ~1 ~-9 ~9 ~1 ~9 blue_stained_glass/fill ~-8 ~1 ~-8 ~8 ~1 ~8 air/fill ~-6 ~1 ~-6 ~6 ~1 ~6 blue_stained_glass/fill ~-5 ~1 ~-5 ~5 ~1 ~5 air/fill ~-3 ~1 ~-3 ~3 ~1 ~3 blue_stained_glass/fill ~-1 ~1 ~-8 ~1 ~1 ~8 air/fill ~-8 ~1 ~-1 ~8 ~1 ~1 air/summon block_display ~ ~1 ~-8 {Tags:["c9_e","c9_actor","c9_pac"],Glowing:1b,glow_color_override:16776960,teleport_duration:3,block_state:{Name:"minecraft:yellow_concrete"},transformation:{left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f],scale:[1.1f,1.1f,1.1f],translation:[-0.55f,0.1f,-0.55f]}}/scoreboard players add #tick c9_t 1/execute if score #tick c9_t matches 1 run summon block_display ~-8 ~1 ~ {Tags:["c9_e","c9_actor","c9_g"],Glowing:1b,glow_color_override:16711680,teleport_duration:3,block_state:{Name:"minecraft:red_concrete"},transformation:{left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f],scale:[1.1f,1.2f,1.1f],translation:[-0.55f,0.1f,-0.55f]}}/execute if score #tick c9_t matches 1 run summon block_display ~8 ~1 ~ {Tags:["c9_e","c9_actor","c9_g"],Glowing:1b,glow_color_override:65535,teleport_duration:3,block_state:{Name:"minecraft:light_blue_concrete"},transformation:{left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f],scale:[1.1f,1.2f,1.1f],translation:[-0.55f,0.1f,-0.55f]}}/execute if score #tick c9_t matches 1 run summon block_display ~ ~1 ~8 {Tags:["c9_e","c9_actor","c9_g"],Glowing:1b,glow_color_override:16738740,teleport_duration:3,block_state:{Name:"minecraft:pink_concrete"},transformation:{left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f],scale:[1.1f,1.2f,1.1f],translation:[-0.55f,0.1f,-0.55f]}}/execute if score #tick c9_t matches 1 run summon block_display ~ ~1 ~ {Tags:["c9_e","c9_actor","c9_g"],Glowing:1b,glow_color_override:16753920,teleport_duration:3,block_state:{Name:"minecraft:orange_concrete"},transformation:{left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f],scale:[1.1f,1.2f,1.1f],translation:[-0.55f,0.1f,-0.55f]}}/scoreboard players add @e[tag=c9_actor] c9_t 1/execute as @e[tag=c9_actor,scores={c9_t=3..}] run scoreboard players set @s c9_t 0/execute as @e[tag=c9_actor,scores={c9_t=0}] at @s if entity @r[tag=c9_actor,tag=c9_pac] if block ^1 ^ ^ air run tp @s ~ ~ ~ ~-90 ~/execute as @e[tag=c9_actor,scores={c9_t=0}] at @s unless block ^ ^ ^1 air run tp @s ~ ~ ~ ~90 ~/execute as @e[tag=c9_actor,scores={c9_t=0}] at @s unless block ^ ^ ^1 air run tp @s ~ ~ ~ ~180 ~/execute as @e[tag=c9_actor,scores={c9_t=0}] at @s if block ^ ^ ^1 air run tp @s ^ ^ ^1/execute at @e[tag=c9_pac] run particle dust{color:[1.0,0.9,0.1],scale:1.6} ~ ~0.6 ~ 0.15 0.15 0.15 0 4/execute at @e[tag=c9_g] run particle dust{color:[0.2,0.9,1.0],scale:1.4} ~ ~0.6 ~ 0.15 0.15 0.15 0 3/execute at @e[tag=c9_pac] if entity @e[tag=c9_g,distance=..1.8] run particle electric_spark ~ ~0.8 ~ 0.4 0.4 0.4 0.2 12setup #3 The setup commands layer concentric rings of blue stained glass and air on top of a black concrete floor, carving out four intersecting corridors to form an arcade maze.setup #10 Summons the yellow runner as a glowing block_display entity with teleport_duration set to 3 ticks so that discrete 1-block steps look like smooth continuous gliding.loop #8 At intersections where the block to the left (^1 ^ ^) is open air, a random selector check gives each entity a chance to turn 90 degrees into the side corridor.loop #9 Checks if the block directly ahead (^ ^ ^1) is solid. If blocked by a glass wall, the entity rotates 90 or 180 degrees until it faces an open path before stepping forward.loop #14 Whenever a ghost comes within 1.8 blocks of the yellow runner, a burst of electric spark particles marks the close encounter.


Recorded on our own test server: 45 frames at about 7.4 fps. Our image check saw: A top-down arcade-style maze in Minecraft with four glowing colored blocks moving along the corridors and leaving particle trails behind them.
Commands, video and screenshots: tested and recorded by www.9minecraft.net © 9Minecraft. Sharing a video or screenshot? Please credit www.9minecraft.net.
To take direct control of the yellow runner yourself, remove the c9_actor tag from the c9_pac entity and add a repeating command block running /execute at @p run tp @e[tag=c9_pac,limit=1] ~ ~ ~ ~ ~ while you walk through the maze corridors.
/kill @e[tag=c9_e]/fill ~-9 ~ ~-9 ~9 ~1 ~9 air/scoreboard objectives remove c9_tEach block_display entity uses the teleport_duration:3 NBT tag, which tells the Minecraft client to smoothly interpolate movement over 3 ticks whenever the entity is teleported.
Yes! Because the runners detect walls dynamically using local coordinates (^ ^ ^1), you can rearrange the blue_stained_glass blocks inside the arena however you like and they will still follow the corridors.
▶Autonomous Bumper Kart DerbySimulationsExpert24 cmds
▶Autonomous Kart ChaosSimulationsExpert26 cmds
▶Self-Sorting Rainbow PillarsSimulationsHard24 cmds
▶Four-Dimensional Hypercube Tesseract RotationSimulationsExpert24 cmds
▶Holographic DNA Double-Helix SplicerSimulationsHard24 cmds