Illuminated Maze Pathfinder

Build a dark tiled maze where glowing cyan and blue pathfinding light nodes branch out from a beacon, probe every hallway, and light up a golden goal.

Java EditionComplex Contraptions & CinematicsHard24 commandsTested on a real 26.2 & 26.3 server
Glowing cyan and blue pathfinding tiles expand from a beacon through a dark Minecraft maze. Download the GIF Video & GIF © www.9minecraft.net

SimulationsTechnologyDarkCyanBlueBlackLearningMap MakingMini-gameBlock displaysBlock building (fill/setblock/clone)21+ commands

This command creation builds a dark deepslate and blackstone obstacle course with a glowing beacon at one corner and a gold block goal at the opposite end. Once the repeating command blocks start, bright cyan block_display nodes rapidly branch out from the beacon, probing every open corridor in real time.

As the search wave advances, newly explored nodes shift into glowing blue ice tiles while emitting cyan dust particles behind the frontier. When the wave reaches the gold block, a fountain of golden particles erupts above the goal before the maze resets for another run.

1. Setup - type these once 10 commands

  1. /scoreboard objectives add c9_t dummy
  2. /fill ~-9 ~-1 ~-9 ~9 ~-1 ~9 deepslate_tiles
  3. /fill ~-9 ~ ~-9 ~9 ~1 ~9 polished_blackstone_bricks
  4. /fill ~-8 ~ ~-8 ~8 ~1 ~8 air
  5. /fill ~-4 ~ ~-8 ~-4 ~1 ~4 polished_blackstone_bricks
  6. /fill ~ ~ ~-4 ~ ~1 ~8 polished_blackstone_bricks
  7. /fill ~4 ~ ~-8 ~4 ~1 ~4 polished_blackstone_bricks
  8. /fill ~-7 ~-1 ~-7 ~-5 ~-1 ~-5 iron_block
  9. /setblock ~-6 ~ ~-6 beacon
  10. /setblock ~6 ~ ~6 gold_block

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 ~-6 ~0.2 ~-6 {Tags:["c9_m","c9_node"],Glowing:1b,glow_color_override:65535,brightness:{sky:15,block:15},block_state:{Name:"minecraft:sea_lantern"},transformation:{left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f],scale:[0.8f,0.35f,0.8f],translation:[-0.4f,0f,-0.4f]}}
  3. /execute if score #tick c9_t matches 2..85 as @e[tag=c9_node,tag=!c9_exp,limit=2] run tag @s add c9_cur
  4. /execute as @e[tag=c9_cur] at @s positioned ~2 ~ ~ if block ~ ~ ~ air unless entity @e[tag=c9_m,distance=..1] run summon block_display ~ ~ ~ {Tags:["c9_m","c9_node"],Glowing:1b,glow_color_override:65535,brightness:{sky:15,block:15},block_state:{Name:"minecraft:sea_lantern"},transformation:{left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f],scale:[0.8f,0.35f,0.8f],translation:[-0.4f,0f,-0.4f]}}
  5. /execute as @e[tag=c9_cur] at @s positioned ~-2 ~ ~ if block ~ ~ ~ air unless entity @e[tag=c9_m,distance=..1] run summon block_display ~ ~ ~ {Tags:["c9_m","c9_node"],Glowing:1b,glow_color_override:65535,brightness:{sky:15,block:15},block_state:{Name:"minecraft:sea_lantern"},transformation:{left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f],scale:[0.8f,0.35f,0.8f],translation:[-0.4f,0f,-0.4f]}}
  6. /execute as @e[tag=c9_cur] at @s positioned ~ ~ ~2 if block ~ ~ ~ air unless entity @e[tag=c9_m,distance=..1] run summon block_display ~ ~ ~ {Tags:["c9_m","c9_node"],Glowing:1b,glow_color_override:65535,brightness:{sky:15,block:15},block_state:{Name:"minecraft:sea_lantern"},transformation:{left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f],scale:[0.8f,0.35f,0.8f],translation:[-0.4f,0f,-0.4f]}}
  7. /execute as @e[tag=c9_cur] at @s positioned ~ ~ ~-2 if block ~ ~ ~ air unless entity @e[tag=c9_m,distance=..1] run summon block_display ~ ~ ~ {Tags:["c9_m","c9_node"],Glowing:1b,glow_color_override:65535,brightness:{sky:15,block:15},block_state:{Name:"minecraft:sea_lantern"},transformation:{left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f],scale:[0.8f,0.35f,0.8f],translation:[-0.4f,0f,-0.4f]}}
  8. /execute as @e[tag=c9_cur] at @s run particle dust{color:[0.0,1.0,1.0],scale:1.8} ~ ~0.4 ~ 0.35 0.25 0.35 0 6 force
  9. /execute as @e[tag=c9_cur] run data merge entity @s {glow_color_override:25599,block_state:{Name:"minecraft:blue_ice"},transformation:{left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f],scale:[0.65f,0.22f,0.65f],translation:[-0.325f,0f,-0.325f]}}
  10. /tag @e[tag=c9_cur] add c9_exp
  11. /tag @e[tag=c9_cur] remove c9_cur
  12. /execute positioned ~6 ~ ~6 if entity @e[tag=c9_m,distance=..2.5] run particle dust{color:[1.0,0.85,0.1],scale:2.2} ~ ~1.3 ~ 0.4 0.7 0.4 0 8 force
  13. /execute if score #tick c9_t matches 110.. run kill @e[tag=c9_m]
  14. /execute if score #tick c9_t matches 110.. run scoreboard players set #tick c9_t 0

How it works

Frames from the test run

Illuminated Maze Pathfinder - frame 1Illuminated Maze Pathfinder - frame 2Illuminated Maze Pathfinder - frame 3

Recorded on our own test server: 45 frames at about 7.4 fps. Our image check saw: A wave of bright cyan leading nodes and glowing blue ice tiles expands outward from a beacon inside a dark blackstone maze toward a gold block goal.

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. Find a flat open area at least 21x21 blocks wide and stand at the exact center.
  2. Run each of the 10 setup commands in order to create the scoreboard, dark tiled maze, beacon origin, and gold block goal.
  3. Place 14 command blocks in a chain or cluster beneath or beside the arena, with the first set to Repeating (Always Active) and the rest set to Chain (Always Active).
  4. Paste the 14 loop commands into the command blocks in exact order, using execute positioned if your command blocks are not centered on the maze.
  5. Watch from above at night as cyan and blue light nodes branch out from the beacon, fill every corridor, and trigger the golden particles at the goal.

Use it with real players

To run this in survival or custom maps with player interaction, build your own maze walls on even coordinates relative to the center, then wire a button or pressure plate to /kill @e[tag=c9_m] and /scoreboard players set #tick c9_t 0 so players can trigger a fresh pathfinding scan whenever they rearrange the obstacle course.

Remove it again 4 commands

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

FAQ

Can I change the maze layout without breaking the pathfinder?

Yes. Because nodes step 2 blocks at a time from (-6, 0, -6), place any custom 2-block-high walls along even coordinates like -4, -2, 0, 2, or 4 and leave at least one open path to the gold block.

Why does the wave reset every few seconds?

The loop clears all c9_m display entities and resets #tick at 110 ticks (5.5 seconds) so the entity count stays below 60 and you can watch the search wave run repeatedly.

Commands used

/data/execute/fill/kill/particle/scoreboard/setblock/summon/tag

Similar creations

Join 9Minecraft News & Guides