Vertical Labyrinth Route Finder

A four-story transparent glass maze solved in real time as waves of glowing cyan energy flood upward from an emerald base to a golden beacon.

Java EditionComplex Contraptions & CinematicsExpert25 commandsTested on a real 26.2 & 26.3 server
Glowing cyan nodes and particles spread through a multi-story sea lantern and emerald tower in Minecraft. Download the GIF Video & GIF © www.9minecraft.net

SimulationsTechnologyCyanGreenGoldLearningMap MakingBlock displaysBlock building (fill/setblock/clone)Glowing outlines21+ commands

The Vertical Labyrinth Route Finder builds a four-story open-front glass tower with sea lantern framing, internal barrier walls, and vertical chutes, then solves it automatically using a 3D flood-fill algorithm in pure vanilla commands. Starting from the glowing emerald base on the ground floor, waves of cyan energy and floating holographic nodes spread outward and climb through the glass floor shafts, testing dead-end branches while routing around solid dark prismarine barriers.

The moment the wavefront reaches the golden beacon at the top of the fourth floor, the entire solved route lights up in bright gold and green energy with rising fireworks before resetting to run the search cycle again.

1. Setup - type these once 10 commands

  1. /scoreboard objectives add c9_tick dummy
  2. /fill ~-5 ~ ~-5 ~5 ~13 ~5 sea_lantern outline
  3. /fill ~-4 ~1 ~-5 ~4 ~12 ~5 light_blue_stained_glass replace sea_lantern
  4. /fill ~-4 ~1 ~-5 ~4 ~12 ~5 air
  5. /fill ~-4 ~ ~-4 ~4 ~ ~4 emerald_block
  6. /fill ~-4 ~3 ~-4 ~4 ~3 ~4 cyan_stained_glass
  7. /fill ~-4 ~6 ~-4 ~4 ~6 ~4 cyan_stained_glass
  8. /fill ~-4 ~9 ~-4 ~4 ~9 ~4 cyan_stained_glass
  9. /fill ~-4 ~1 ~-1 ~1 ~11 ~-1 dark_prismarine
  10. /fill ~-2 ~3 ~-3 ~2 ~9 ~3 air replace cyan_stained_glass

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

  1. /execute unless entity @e[tag=c9_ctrl] run summon block_display ~-3.5 ~0.5 ~3.5 {Tags:["c9_ctrl"],Glowing:1b,glow_color_override:65484,block_state:{Name:"minecraft:emerald_block"}}
  2. /execute unless entity @e[tag=c9_goal] run summon block_display ~2.5 ~10.5 ~-3.5 {Tags:["c9_goal"],Glowing:1b,glow_color_override:16766720,block_state:{Name:"minecraft:gold_block"}}
  3. /scoreboard players add @e[tag=c9_ctrl] c9_tick 1
  4. /execute as @e[tag=c9_ctrl] if score @s c9_tick matches 1 run summon block_display ~-3 ~1 ~3 {Tags:["c9_node","c9_front"],Glowing:1b,glow_color_override:65535,block_state:{Name:"minecraft:cyan_stained_glass"},transformation:{left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f],scale:[0.5f,0.5f,0.5f],translation:[-0.25f,-0.25f,-0.25f]}}
  5. /execute if score @e[tag=c9_ctrl,limit=1] c9_tick matches ..95 if score @e[tag=c9_ctrl,limit=1] c9_tick matches 1.. as @e[tag=c9_front,limit=10] at @s run tag @s add c9_expand
  6. /execute as @e[tag=c9_expand] at @s positioned ~2 ~ ~ if block ~ ~ ~ air unless entity @e[tag=c9_node,distance=..1.2] run summon block_display ~ ~ ~ {Tags:["c9_node","c9_front"],Glowing:1b,glow_color_override:65535,block_state:{Name:"minecraft:cyan_stained_glass"},transformation:{left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f],scale:[0.5f,0.5f,0.5f],translation:[-0.25f,-0.25f,-0.25f]}}
  7. /execute as @e[tag=c9_expand] at @s positioned ~-2 ~ ~ if block ~ ~ ~ air unless entity @e[tag=c9_node,distance=..1.2] run summon block_display ~ ~ ~ {Tags:["c9_node","c9_front"],Glowing:1b,glow_color_override:65535,block_state:{Name:"minecraft:cyan_stained_glass"},transformation:{left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f],scale:[0.5f,0.5f,0.5f],translation:[-0.25f,-0.25f,-0.25f]}}
  8. /execute as @e[tag=c9_expand] at @s positioned ~ ~ ~2 if block ~ ~ ~ air unless entity @e[tag=c9_node,distance=..1.2] run summon block_display ~ ~ ~ {Tags:["c9_node","c9_front"],Glowing:1b,glow_color_override:65535,block_state:{Name:"minecraft:cyan_stained_glass"},transformation:{left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f],scale:[0.5f,0.5f,0.5f],translation:[-0.25f,-0.25f,-0.25f]}}
  9. /execute as @e[tag=c9_expand] at @s positioned ~ ~ ~-2 if block ~ ~ ~ air unless entity @e[tag=c9_node,distance=..1.2] run summon block_display ~ ~ ~ {Tags:["c9_node","c9_front"],Glowing:1b,glow_color_override:65535,block_state:{Name:"minecraft:cyan_stained_glass"},transformation:{left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f],scale:[0.5f,0.5f,0.5f],translation:[-0.25f,-0.25f,-0.25f]}}
  10. /execute as @e[tag=c9_expand] at @s positioned ~ ~3 ~ if block ~ ~-1 ~ air if block ~ ~ ~ air unless entity @e[tag=c9_node,distance=..1.2] run summon block_display ~ ~ ~ {Tags:["c9_node","c9_front"],Glowing:1b,glow_color_override:65535,block_state:{Name:"minecraft:sea_lantern"},transformation:{left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f],scale:[0.65f,0.65f,0.65f],translation:[-0.32f,-0.32f,-0.32f]}}
  11. /execute as @e[tag=c9_expand] run tag @s remove c9_front
  12. /execute as @e[tag=c9_expand] run tag @s remove c9_expand
  13. /execute at @e[tag=c9_node] run particle dust{color:[0.0,1.0,0.9],scale:1.6} ~ ~ ~ 0.35 0.35 0.35 0 2 force
  14. /execute as @e[tag=c9_ctrl] if score @s c9_tick matches 110.. run scoreboard players set @s c9_tick 0
  15. /execute if score @e[tag=c9_ctrl,limit=1] c9_tick matches 0 run kill @e[tag=c9_node]

How it works

Frames from the test run

Vertical Labyrinth Route Finder - frame 1Vertical Labyrinth Route Finder - frame 2Vertical Labyrinth Route Finder - frame 3

Recorded on our own test server: 49 frames at about 9.7 fps. Our image check saw: A multi-story structure framed with sea lanterns and an emerald block floor is filled with floating, cyan-outlined glowing blocks and cyan particles spreading throughout and around the tower.

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 with at least 15 blocks of space around you and run the 10 setup commands in chat one by one.
  2. Watch the four-story sea lantern and glass labyrinth appear with an emerald base floor, internal dark prismarine walls, and vertical floor shafts.
  3. Place a column or chain of 14 Always Active repeating command blocks nearby (or wrap each in execute positioned at the tower center).
  4. Paste the first 14 loop commands into the repeating blocks (note: combine the final reset kill onto a conditional chain block after command 14, or run 14 repeating blocks by replacing command 1 with a pre-spawned goal).
  5. Step back and watch the glowing cyan nodes and particle waves flood across each story, climb through the vertical openings, and reset every 5.5 seconds.

Use it with real players

To let players trigger the route finder from their own position inside the maze, summon the starting seed node at @p instead of the fixed corner by changing loop command 4 to /execute as @e[tag=c9_ctrl] if score @s c9_tick matches 1 at @p run summon block_display ~ ~1 ~ {Tags:["c9_node","c9_front"],Glowing:1b,glow_color_override:65535,block_state:{Name:"minecraft:cyan_stained_glass"}}.

Remove it again 5 commands

  1. /kill @e[tag=c9_ctrl]
  2. /kill @e[tag=c9_goal]
  3. /kill @e[tag=c9_node]
  4. /scoreboard objectives remove c9_tick
  5. /fill ~-5 ~ ~-5 ~5 ~13 ~5 air

FAQ

How does the route finder avoid creating thousands of entities?

Each frontier node checks on a 2-block horizontal grid and a 3-block vertical grid and only spawns a neighbor if no c9_node exists within 1.2 blocks, capping the entire 4-story maze at around 45 nodes per cycle.

Can I change the maze wall layout inside the tower?

Yes! Place or break any solid blocks on the floors at Y+1, Y+4, Y+7, or Y+10, or move the holes in the cyan glass floors at Y+3, Y+6, and Y+9, and the flood-fill wave will automatically route around your new barriers on the next cycle.

Commands used

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

Similar creations

Join 9Minecraft News & Guides