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.
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.
/scoreboard objectives add c9_t dummy/fill ~-9 ~-1 ~-9 ~9 ~-1 ~9 deepslate_tiles/fill ~-9 ~ ~-9 ~9 ~1 ~9 polished_blackstone_bricks/fill ~-8 ~ ~-8 ~8 ~1 ~8 air/fill ~-4 ~ ~-8 ~-4 ~1 ~4 polished_blackstone_bricks/fill ~ ~ ~-4 ~ ~1 ~8 polished_blackstone_bricks/fill ~4 ~ ~-8 ~4 ~1 ~4 polished_blackstone_bricks/fill ~-7 ~-1 ~-7 ~-5 ~-1 ~-5 iron_block/setblock ~-6 ~ ~-6 beacon/setblock ~6 ~ ~6 gold_block/scoreboard players add #tick c9_t 1/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]}}/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/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]}}/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]}}/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]}}/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]}}/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/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]}}/tag @e[tag=c9_cur] add c9_exp/tag @e[tag=c9_cur] remove c9_cur/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/execute if score #tick c9_t matches 110.. run kill @e[tag=c9_m]/execute if score #tick c9_t matches 110.. run scoreboard players set #tick c9_t 0setup #3 Builds the outer <strong>polished_blackstone_bricks</strong> walls and <strong>deepslate_tiles</strong> floor, then clears the interior to form a 17x17 arena.loop #2 On tick 1 of each cycle, summons the initial glowing cyan <strong>sea_lantern</strong> display node at the beacon origin.loop #3 Picks up to 2 unexpanded frontier nodes per tick and tags them <code>c9_cur</code> so the search wave branches smoothly across corridors.loop #4 Checks 2 blocks in each cardinal direction for open air and no existing <code>c9_m</code> node, summoning new cyan frontier nodes only in unvisited hallways.loop #9 Emits cyan dust particles at the expanding nodes, then merges them into flatter glowing <strong>blue_ice</strong> displays to show visited paths.loop #12 Detects when any node comes within 2.5 blocks of the <strong>gold_block</strong> goal and spawns a golden particle fountain above it.loop #13 At tick 110, kills all <code>c9_m</code> display nodes and resets the timer to 0 so a fresh pathfinding wave begins automatically.


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.
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.
/kill @e[tag=c9_m]/scoreboard objectives remove c9_t/fill ~-9 ~-1 ~-9 ~9 ~-1 ~9 grass_block/fill ~-9 ~ ~-9 ~9 ~2 ~9 airYes. 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.
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.
/data/execute/fill/kill/particle/scoreboard/setblock/summon/tag
▶Magnetic Ferrofluid Audio VisualizerSimulationsHard24 cmds
▶Animated Logic-Gate Binary to Decimal ScoreboardSimulationsExpert24 cmds
▶Autonomous Cellular Grid: Conway's Game of Life in Vanilla MinecraftSimulationsMedium24 cmds
▶Live Pathfinding VisualizerSimulationsHard24 cmds
▶Smart Aiming Sentry vs. Classic Cannon ShowdownSimulationsExpert24 cmds
▶Spreading Glitch InfectionSimulationsMedium23 cmds