Four custom-modeled neon spirits autonomously navigate a glowing arcade labyrinth, chasing a golden runner and scattering into panicked blue ghosts.
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!
/scoreboard objectives add c9_tick dummy/fill ~-9 ~-1 ~-9 ~9 ~-1 ~9 minecraft:obsidian/fill ~-9 ~ ~-9 ~9 ~ ~9 minecraft:lapis_block outline/fill ~-6 ~ ~-6 ~6 ~ ~6 minecraft:lapis_block hollow/fill ~-3 ~ ~-3 ~3 ~ ~3 minecraft:lapis_block hollow/fill ~-8 ~ ~-1 ~8 ~ ~1 minecraft:air/fill ~-1 ~ ~-8 ~1 ~ ~8 minecraft:air/fill ~-1 ~ ~-1 ~1 ~ ~1 minecraft:sea_lantern/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}}/summon minecraft:marker ~ ~ ~ {Tags:["c9_ent","c9_ctrl"]}/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"}}]}/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"}}]}/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"}}]}/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"}}]}/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"}}/scoreboard players add @e[tag=c9_ctrl] c9_tick 1/execute if score @e[tag=c9_ctrl,limit=1] c9_tick matches 180.. run scoreboard players set @e[tag=c9_ctrl] c9_tick 0/execute as @e[tag=c9_ghost] at @s unless block ^ ^ ^0.75 minecraft:air run tp @s ~ ~ ~ ~90 ~/execute as @e[tag=c9_ghost] at @s unless block ^ ^ ^0.75 minecraft:air run tp @s ~ ~ ~ ~180 ~/execute if score @e[tag=c9_ctrl,limit=1] c9_tick matches 120 as @e[tag=c9_ghost] at @s run tp @s ~ ~ ~ ~180 ~/execute as @e[tag=c9_ghost] at @s if block ^ ^ ^0.65 minecraft:air run tp @s ^ ^ ^0.25/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}}/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}}/execute as @e[tag=c9_ghost] at @s run particle minecraft:end_rod ~ ~0.5 ~ 0.1 0.1 0.1 0.01 1 forcesetup #3 Builds the outer and inner rings of the arcade labyrinth using <code>lapis_block</code> over an obsidian base, while subsequent commands carve out the four cross-corridors.loop #1 Summons the Red spirit using a <code>block_display</code> with two passenger block displays for its eyes. The <code>teleport_duration:2</code> tag makes all movement smoothly interpolated.loop #8 Handles autonomous maze navigation: each spirit checks 0.75 blocks ahead using local coordinates (<code>^ ^ ^0.75</code>). If it detects a lapis wall instead of air, it turns 90 degrees.loop #10 When the game timer hits 120 ticks (6 seconds), the mode switches to Scatter Mode, forcing all spirits to immediately reverse direction by 180 degrees.


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.
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!
/kill @e[tag=c9_ent]/scoreboard objectives remove c9_tick/fill ~-9 ~ ~-9 ~9 ~ ~9 minecraft:air/fill ~-9 ~-1 ~-9 ~9 ~-1 ~9 minecraft:grass_blockThey 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.
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.
▶Articulated Centipede Mechanical UndulationCreatures & ModelsExpert23 cmds
▶Clockwork Peacock Tail FanningCreatures & ModelsExpert24 cmds
▶Clumsy AutomatonCreatures & ModelsMedium24 cmds
▶Cybernetic Eye Dilating Laser ScanCreatures & ModelsMedium24 cmds
▶Cyberpunk Holographic Koi PondCreatures & ModelsHard25 cmds
▶Holographic Card Duel ArenaCreatures & ModelsHard24 cmds