Autonomous Maze Chaser Arcade

Build a live top-down arcade labyrinth in Minecraft where a glowing yellow runner and four colorful ghosts automatically navigate neon walls and corridors.

Java EditionComplex Contraptions & CinematicsExpert24 commandsTested on a real 26.2 & 26.3 server
Four glowing colored blocks navigate a dark blue top-down arcade maze, leaving sparkling particle trails behind. Download the GIF Video & GIF © www.9minecraft.net

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.

1. Setup - type these once 10 commands

  1. /scoreboard objectives add c9_t dummy
  2. /fill ~-9 ~ ~-9 ~9 ~ ~9 black_concrete
  3. /fill ~-9 ~1 ~-9 ~9 ~1 ~9 blue_stained_glass
  4. /fill ~-8 ~1 ~-8 ~8 ~1 ~8 air
  5. /fill ~-6 ~1 ~-6 ~6 ~1 ~6 blue_stained_glass
  6. /fill ~-5 ~1 ~-5 ~5 ~1 ~5 air
  7. /fill ~-3 ~1 ~-3 ~3 ~1 ~3 blue_stained_glass
  8. /fill ~-1 ~1 ~-8 ~1 ~1 ~8 air
  9. /fill ~-8 ~1 ~-1 ~8 ~1 ~1 air
  10. /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]}}

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

  1. /scoreboard players add #tick c9_t 1
  2. /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]}}
  3. /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]}}
  4. /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]}}
  5. /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]}}
  6. /scoreboard players add @e[tag=c9_actor] c9_t 1
  7. /execute as @e[tag=c9_actor,scores={c9_t=3..}] run scoreboard players set @s c9_t 0
  8. /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 ~
  9. /execute as @e[tag=c9_actor,scores={c9_t=0}] at @s unless block ^ ^ ^1 air run tp @s ~ ~ ~ ~90 ~
  10. /execute as @e[tag=c9_actor,scores={c9_t=0}] at @s unless block ^ ^ ^1 air run tp @s ~ ~ ~ ~180 ~
  11. /execute as @e[tag=c9_actor,scores={c9_t=0}] at @s if block ^ ^ ^1 air run tp @s ^ ^ ^1
  12. /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
  13. /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
  14. /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 12

How it works

Frames from the test run

Autonomous Maze Chaser Arcade - frame 1Autonomous Maze Chaser Arcade - frame 2Autonomous Maze Chaser Arcade - frame 3

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.

Build it in your world

  1. Stand at the center of a flat open area where you want the 19x19 arcade maze to appear.
  2. Run the 10 setup commands in order to create the scoreboard, carve the glass labyrinth, and spawn the yellow runner.
  3. Place 14 repeating command blocks (or 1 repeating block chained into 13 chain command blocks) set to Always Active.
  4. Paste each loop command into the command blocks in order so that the four colored ghosts spawn on tick 1 and begin moving.
  5. Watch from above at night for the sharpest contrast on the glowing display blocks and particle trails.

Use it with real players

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.

Remove it again 3 commands

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

FAQ

Why do the blocks glide smoothly instead of snapping one block at a time?

Each 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.

Can I change the layout of the maze walls?

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.

Commands used

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

Similar creations

Join 9Minecraft News & Guides