Self-Assembling Modular Labyrinth

Watch four autonomous copper builder drones dart across a glowing deepslate grid, dropping and recycling holographic maze walls in real time.

Java EditionComplex Contraptions & CinematicsMedium24 commandsTested on a real 26.2 & 26.3 server
Glowing sea lantern pillars drop from the sky to assemble a modular labyrinth on a deepslate platform. Download the GIF Video & GIF © www.9minecraft.net

Self-building StructuresTechnologyIndustrialCyanOrangeBlackMini-gameAdventure MapMap MakingBlock displaysItem displaysArmor standsSmooth animation (interpolation)Block building (fill/setblock/clone)Rotation math21+ commands

The Self-Assembling Modular Labyrinth turns an empty platform into a living architectural puzzle. A dark deepslate foundation surrounded by glowing copper walls prepares the grid while four autonomous builder drones dart from junction to junction. Every fraction of a second, holographic wall segments and sea lantern pillars drop from the sky with smooth interpolation and bursts of copper sparks.

Instead of filling up and stopping, the labyrinth continually recycles itself. Old walls dematerialize after a short lifespan so the drones can carve fresh corridors endlessly around the central floating beacon core.

1. Setup - type these once 10 commands

  1. /scoreboard objectives add c9_t dummy
  2. /fill ~-12 ~-1 ~-12 ~12 ~-1 ~12 deepslate_tiles
  3. /fill ~-13 ~ ~-13 ~13 ~2 ~13 chiseled_copper outline
  4. /fill ~-12 ~ ~-12 ~12 ~2 ~12 air
  5. /fill ~-2 ~-1 ~-2 ~2 ~-1 ~2 sea_lantern
  6. /summon item_display ~ ~2.5 ~ {Tags:["c9_lab","c9_core"],Glowing:1b,glow_color_override:65535,item:{id:"minecraft:beacon",count:1},transformation:{left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f],translation:[0f,0f,0f],scale:[1.8f,1.8f,1.8f]}}
  7. /summon armor_stand ~3 ~ ~3 {Tags:["c9_lab","c9_head"],NoGravity:1b,Invisible:1b,Glowing:1b,equipment:{head:{id:"minecraft:waxed_copper_bulb",count:1}}}
  8. /summon armor_stand ~-3 ~ ~3 {Tags:["c9_lab","c9_head"],NoGravity:1b,Invisible:1b,Glowing:1b,equipment:{head:{id:"minecraft:waxed_copper_bulb",count:1}},Rotation:[90f,0f]}
  9. /summon armor_stand ~-3 ~ ~-3 {Tags:["c9_lab","c9_head"],NoGravity:1b,Invisible:1b,Glowing:1b,equipment:{head:{id:"minecraft:waxed_copper_bulb",count:1}},Rotation:[180f,0f]}
  10. /summon armor_stand ~3 ~ ~-3 {Tags:["c9_lab","c9_head"],NoGravity:1b,Invisible:1b,Glowing:1b,equipment:{head:{id:"minecraft:waxed_copper_bulb",count:1}},Rotation:[270f,0f]}

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

  1. /scoreboard players add #tick c9_t 1
  2. /scoreboard players set #step c9_t 0
  3. /execute if score #tick c9_t matches 6.. run scoreboard players set #step c9_t 1
  4. /execute if score #step c9_t matches 1 run scoreboard players set #tick c9_t 0
  5. /execute if score #step c9_t matches 1 as @e[tag=c9_head] at @s run tp @s ^ ^ ^3 ~90 ~
  6. /execute if score #step c9_t matches 1 as @e[tag=c9_head,limit=2,sort=random] at @s run tp @s ~ ~ ~ ~90 ~
  7. /execute as @e[tag=c9_head] at @s unless block ~ ~-1 ~ deepslate_tiles run tp @s ~ ~ ~ ~180 ~
  8. /execute as @e[tag=c9_head] at @s unless block ~ ~-1 ~ deepslate_tiles run tp @s ^ ^ ^3
  9. /execute if score #step c9_t matches 1 at @e[tag=c9_head] unless entity @e[tag=c9_wall,distance=..1.5] run summon block_display ~ ~6 ~ {Tags:["c9_lab","c9_wall","c9_new"],Glowing:1b,glow_color_override:16755200,block_state:{Name:"minecraft:chiseled_tuff_bricks"},teleport_duration:6,transformation:{left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f],translation:[-0.5f,0f,-1.5f],scale:[1f,2.6f,3f]}}
  10. /execute if score #step c9_t matches 1 at @e[tag=c9_head] unless entity @e[tag=c9_pil,distance=..1.5] run summon block_display ~ ~8 ~ {Tags:["c9_lab","c9_pil","c9_new"],Glowing:1b,glow_color_override:65535,block_state:{Name:"minecraft:sea_lantern"},teleport_duration:6,transformation:{left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f],translation:[-0.65f,0f,-0.65f],scale:[1.3f,3.2f,1.3f]}}
  11. /execute as @e[tag=c9_new] at @s run tp @s ~ ~-6 ~ ~ ~
  12. /execute if score #step c9_t matches 1 at @e[tag=c9_new] run particle scrape ~ ~1.5 ~ 0.6 1.2 0.6 0.1 18 force
  13. /tag @e[tag=c9_new] remove c9_new
  14. /execute as @e[tag=c9_lab,tag=!c9_head,tag=!c9_core] at @s store result score @s c9_t run scoreboard players add @s c9_t 1

How it works

Frames from the test run

Self-Assembling Modular Labyrinth - frame 1Self-Assembling Modular Labyrinth - frame 2Self-Assembling Modular Labyrinth - frame 3

Recorded on our own test server: 59 frames at about 9.7 fps. Our image check saw: Glowing cyan-outlined sea lantern pillars and orange-outlined wall segments drop from the sky onto a deepslate platform surrounded by copper walls.

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 where you want the 27x27 labyrinth arena to appear.
  2. Run the 10 setup commands in chat or from an impulse command block to build the deepslate grid, central core, and four copper builder drones.
  3. Place 14 repeating command blocks (or one repeating block leading into 13 chain blocks), all set to Always Active.
  4. Paste the 14 loop commands in order into those blocks.
  5. Watch the four copper drones move around the grid and drop glowing walls and cyan pillars from above.
  6. When you want to clear the arena, disable the repeating blocks and run the cleanup commands.

Use it with real players

To let a player draw labyrinth walls by walking around, give yourself the builder tag with /tag @s add c9_head and remove the autonomous movement commands (loop commands 5 through 8). Wherever you walk on the grid, glowing walls and pillars will drop from the sky behind you.

Remove it again 4 commands

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

FAQ

Can students walk through the holographic walls?

Because the walls use block_display entities for smooth falling animations and colored glowing outlines, players can walk through them unless you also place barrier blocks at each wall position.

How do I change the size of the labyrinth grid?

Increase the deepslate_tiles fill area in setup command 2 using multiples of 3 blocks (such as -18 to 18). The drones automatically stay inside whatever deepslate_tiles floor you create.

Commands used

/execute/fill/particle/scoreboard/summon/tag/tp

Similar creations

Join 9Minecraft News & Guides