Retro Arcade Maze Runners

Four custom-modeled neon spirits autonomously navigate a glowing arcade labyrinth, chasing a golden runner and scattering into panicked blue ghosts.

Java EditionHolograms & Display EntitiesHard24 commandsTested on a real 26.2 & 26.3 server
A retro arcade maze in Minecraft with four colored ghost entities and a golden block runner. Download the GIF Video & GIF © www.9minecraft.net

Creatures & ModelsTechnologyBlueGoldRainbowDecorationMini-gameServer LobbyParticlesBlock displaysText displaysSmooth animation (interpolation)Scoreboard timersExecute chainsRiding & passengersSummoned mobsBlock building (fill/setblock/clone)Glowing outlinesRotation math21+ commands

Step into a miniature retro arcade cabinet brought to life inside Minecraft. This command creation constructs a glowing blue neon labyrinth on an obsidian floor, complete with floating power pellets and a central arcade header. Four vibrant, multi-part custom spirits—Red, Pink, Cyan, and Orange—autonomously patrol the maze corridors alongside a golden runner.

Using block display transformations and smart pathfinding raycasts, the spirits smoothly glide around walls, bobbing up and down while leaving color-coded pixel trails. Every few seconds, the game state flips between Chase Mode and a panicked Scatter Mode where the ghosts turn frightened blue and reverse direction!

1. Setup - type these once 10 commands

  1. /scoreboard objectives add c9_tick dummy
  2. /fill ~-9 ~-1 ~-9 ~9 ~-1 ~9 minecraft:obsidian
  3. /fill ~-9 ~ ~-9 ~9 ~ ~9 minecraft:lapis_block outline
  4. /fill ~-6 ~ ~-6 ~6 ~ ~6 minecraft:lapis_block hollow
  5. /fill ~-3 ~ ~-3 ~3 ~ ~3 minecraft:lapis_block hollow
  6. /fill ~-8 ~ ~-1 ~8 ~ ~1 minecraft:air
  7. /fill ~-1 ~ ~-8 ~1 ~ ~8 minecraft:air
  8. /fill ~-1 ~ ~-1 ~1 ~ ~1 minecraft:sea_lantern
  9. /summon minecraft:text_display ~ ~3.5 ~ {Tags:["c9_ent","c9_sign"],billboard:"center",background:0,transformation:{left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f],translation:[0f,0f,0f],scale:[2.2f,2.2f,2.2f]},text:{text:"=== CHASE MODE ===",color:"gold",bold:true}}
  10. /summon minecraft:marker ~ ~ ~ {Tags:["c9_ent","c9_ctrl"]}

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

  1. /execute unless entity @e[tag=c9_red] run summon minecraft:block_display ~-7.5 ~ ~-7.5 {Tags:["c9_ent","c9_ghost","c9_red"],Rotation:[0f,0f],Glowing:1b,glow_color_override:16724787,teleport_duration:2,transformation:{left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f],translation:[-0.4f,0.1f,-0.4f],scale:[0.8f,0.9f,0.8f]},block_state:{Name:"minecraft:red_concrete"},Passengers:[{id:"minecraft:block_display",Tags:["c9_ent","c9_eye"],Glowing:1b,transformation:{left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f],translation:[-0.3f,0.45f,0.1f],scale:[0.22f,0.28f,0.35f]},block_state:{Name:"minecraft:white_concrete"}},{id:"minecraft:block_display",Tags:["c9_ent","c9_eye"],Glowing:1b,transformation:{left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f],translation:[0.08f,0.45f,0.1f],scale:[0.22f,0.28f,0.35f]},block_state:{Name:"minecraft:white_concrete"}}]}
  2. /execute unless entity @e[tag=c9_pink] run summon minecraft:block_display ~7.5 ~ ~-7.5 {Tags:["c9_ent","c9_ghost","c9_pink"],Rotation:[90f,0f],Glowing:1b,glow_color_override:16744639,teleport_duration:2,transformation:{left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f],translation:[-0.4f,0.1f,-0.4f],scale:[0.8f,0.9f,0.8f]},block_state:{Name:"minecraft:pink_concrete"},Passengers:[{id:"minecraft:block_display",Tags:["c9_ent","c9_eye"],Glowing:1b,transformation:{left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f],translation:[-0.3f,0.45f,0.1f],scale:[0.22f,0.28f,0.35f]},block_state:{Name:"minecraft:white_concrete"}},{id:"minecraft:block_display",Tags:["c9_ent","c9_eye"],Glowing:1b,transformation:{left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f],translation:[0.08f,0.45f,0.1f],scale:[0.22f,0.28f,0.35f]},block_state:{Name:"minecraft:white_concrete"}}]}
  3. /execute unless entity @e[tag=c9_cyan] run summon minecraft:block_display ~7.5 ~ ~7.5 {Tags:["c9_ent","c9_ghost","c9_cyan"],Rotation:[180f,0f],Glowing:1b,glow_color_override:43775,teleport_duration:2,transformation:{left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f],translation:[-0.4f,0.1f,-0.4f],scale:[0.8f,0.9f,0.8f]},block_state:{Name:"minecraft:cyan_concrete"},Passengers:[{id:"minecraft:block_display",Tags:["c9_ent","c9_eye"],Glowing:1b,transformation:{left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f],translation:[-0.3f,0.45f,0.1f],scale:[0.22f,0.28f,0.35f]},block_state:{Name:"minecraft:white_concrete"}},{id:"minecraft:block_display",Tags:["c9_ent","c9_eye"],Glowing:1b,transformation:{left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f],translation:[0.08f,0.45f,0.1f],scale:[0.22f,0.28f,0.35f]},block_state:{Name:"minecraft:white_concrete"}}]}
  4. /execute unless entity @e[tag=c9_orange] run summon minecraft:block_display ~-7.5 ~ ~7.5 {Tags:["c9_ent","c9_ghost","c9_orange"],Rotation:[-90f,0f],Glowing:1b,glow_color_override:16753920,teleport_duration:2,transformation:{left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f],translation:[-0.4f,0.1f,-0.4f],scale:[0.8f,0.9f,0.8f]},block_state:{Name:"minecraft:orange_concrete"},Passengers:[{id:"minecraft:block_display",Tags:["c9_ent","c9_eye"],Glowing:1b,transformation:{left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f],translation:[-0.3f,0.45f,0.1f],scale:[0.22f,0.28f,0.35f]},block_state:{Name:"minecraft:white_concrete"}},{id:"minecraft:block_display",Tags:["c9_ent","c9_eye"],Glowing:1b,transformation:{left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f],translation:[0.08f,0.45f,0.1f],scale:[0.22f,0.28f,0.35f]},block_state:{Name:"minecraft:white_concrete"}}]}
  5. /execute unless entity @e[tag=c9_pac] run summon minecraft:block_display ~-4.5 ~ ~0.5 {Tags:["c9_ent","c9_ghost","c9_pac"],Rotation:[0f,0f],Glowing:1b,glow_color_override:16770560,teleport_duration:2,transformation:{left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f],translation:[-0.45f,0.1f,-0.45f],scale:[0.9f,0.9f,0.9f]},block_state:{Name:"minecraft:gold_block"}}
  6. /scoreboard players add @e[tag=c9_ctrl] c9_tick 1
  7. /execute if score @e[tag=c9_ctrl,limit=1] c9_tick matches 180.. run scoreboard players set @e[tag=c9_ctrl] c9_tick 0
  8. /execute as @e[tag=c9_ghost] at @s unless block ^ ^ ^0.75 minecraft:air run tp @s ~ ~ ~ ~90 ~
  9. /execute as @e[tag=c9_ghost] at @s unless block ^ ^ ^0.75 minecraft:air run tp @s ~ ~ ~ ~180 ~
  10. /execute if score @e[tag=c9_ctrl,limit=1] c9_tick matches 120 as @e[tag=c9_ghost] at @s run tp @s ~ ~ ~ ~180 ~
  11. /execute as @e[tag=c9_ghost] at @s if block ^ ^ ^0.65 minecraft:air run tp @s ^ ^ ^0.25
  12. /execute if score @e[tag=c9_ctrl,limit=1] c9_tick matches 120 run data merge entity @e[tag=c9_sign,limit=1] {text:{text:"=== SCATTER MODE ===",color:"aqua",bold:true}}
  13. /execute if score @e[tag=c9_ctrl,limit=1] c9_tick matches 1 run data merge entity @e[tag=c9_sign,limit=1] {text:{text:"=== CHASE MODE ===",color:"gold",bold:true}}
  14. /execute as @e[tag=c9_ghost] at @s run particle minecraft:end_rod ~ ~0.5 ~ 0.1 0.1 0.1 0.01 1 force

How it works

Frames from the test run

Retro Arcade Maze Runners - frame 1Retro Arcade Maze Runners - frame 2Retro Arcade Maze Runners - frame 3

Recorded on our own test server: 57 frames at about 9.5 fps. Our image check saw: A blue and obsidian cross-shaped maze with a central glowing block header reading 'SCATTER MODE' and 'CHASE MODE', featuring four colored glowing outlines (red, pink, orange, cyan) in the corners and a golden block runner moving through the path with white 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 at the center of a flat 41x41 area where you want the arcade maze to appear.
  2. Run each of the 10 setup commands in your chat window one by one to generate the obsidian floor, lapis labyrinth walls, and floating mode sign.
  3. Place a column or line of 14 Repeating Command Blocks set to 'Always Active' near the stage.
  4. Paste one loop command into each repeating command block, wrapping them or positioning them relative to the center of the maze.
  5. Watch as the four colorful spirits and the golden runner spawn into the corners and start navigating the corridors automatically!

Use it with real players

To turn this into a playable minigame where the spirits react to a real player inside the maze, remove the fifth loop command that spawns c9_pac and give yourself the runner tag with /tag @s add c9_pac. You can then add a repeating command block with /execute at @a[tag=c9_pac] if entity @e[tag=c9_ghost,tag=!c9_pac,distance=..1.2] run effect give @a[tag=c9_pac] minecraft:Instant_Damage 1 0 to take damage when caught by a spirit!

Remove it again 4 commands

  1. /kill @e[tag=c9_ent]
  2. /scoreboard objectives remove c9_tick
  3. /fill ~-9 ~ ~-9 ~9 ~ ~9 minecraft:air
  4. /fill ~-9 ~-1 ~-9 ~9 ~-1 ~9 minecraft:grass_block

FAQ

Why do the spirits move so smoothly instead of snapping each tick?

They are built from 1.20+ block_display entities with the teleport_duration NBT tag set to 2, which tells the Minecraft client to smoothly interpolate their position between teleports.

Can I change the layout of the maze walls?

Yes! Because the spirits use local raycast checks (^ ^ ^0.75) to detect non-air blocks in front of them, you can build any corridor pattern out of lapis blocks and they will automatically turn when they reach a corner.

Commands used

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

Similar creations

Join 9Minecraft News & Guides