Watch four glowing golden energy orbs race through a solid deepslate monolith, carving an intricate, shifting dungeon maze around a glowing cyan core.
Self-building StructuresMysticDarkTechnologyGoldCyanBlackMap MakingAdventure MapMini-gameItem displaysSummoned mobsBlock building (fill/setblock/clone)21+ commands
The Autonomous Labyrinth Weaver turns a solid block of deepslate into a complex dungeon right before your eyes. Starting from a glowing cyan conduit core at the center, four floating golden energy pillars wake up and begin racing through the stonework, leaving trails of soul fire, particles, and glowing lanterns in their wake.
Using randomized directional steps and block checks, the weavers carve out hallways, chambers, and intersections without ever breaking through the outer boundary wall. Because every step is chosen at random, the labyrinth layout is completely unique every single time you run it.
/scoreboard objectives add c9_tick dummy/scoreboard objectives add c9_step dummy/scoreboard objectives add c9_dir dummy/fill ~-13 ~-1 ~-13 ~13 ~-1 ~13 minecraft:polished_deepslate/fill ~-13 ~ ~-13 ~13 ~3 ~13 minecraft:deepslate_bricks/fill ~-12 ~ ~-12 ~12 ~3 ~12 minecraft:deepslate_tiles/fill ~-1 ~ ~-1 ~1 ~3 ~1 minecraft:air/setblock ~ ~ ~ minecraft:sea_lantern/summon minecraft:item_display ~ ~2.5 ~ {Tags:["c9_ent","c9_core"],Glowing:1b,glow_color_override:65535,item:{id:"minecraft:conduit",count:1},transformation:{left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f],scale:[2.2f,2.2f,2.2f],translation:[0f,0f,0f]}}/summon minecraft:marker ~ ~ ~ {Tags:["c9_ent","c9_ctrl"]}/execute as @e[tag=c9_ctrl] run scoreboard players add @s c9_tick 1/execute as @e[tag=c9_ctrl,scores={c9_tick=1}] at @s run summon minecraft:item_display ~3 ~1.5 ~ {Tags:["c9_ent","c9_weaver"],Glowing:1b,glow_color_override:16766720,item:{id:"minecraft:gold_block",count:1},transformation:{left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f],scale:[1.1f,2.8f,1.1f],translation:[0f,0f,0f]}}/execute as @e[tag=c9_ctrl,scores={c9_tick=1}] at @s run summon minecraft:item_display ~-3 ~1.5 ~ {Tags:["c9_ent","c9_weaver"],Glowing:1b,glow_color_override:16755200,item:{id:"minecraft:gold_block",count:1},transformation:{left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f],scale:[1.1f,2.8f,1.1f],translation:[0f,0f,0f]}}/execute as @e[tag=c9_ctrl,scores={c9_tick=1}] at @s run summon minecraft:item_display ~ ~1.5 ~3 {Tags:["c9_ent","c9_weaver"],Glowing:1b,glow_color_override:16766720,item:{id:"minecraft:gold_block",count:1},transformation:{left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f],scale:[1.1f,2.8f,1.1f],translation:[0f,0f,0f]}}/execute as @e[tag=c9_ctrl,scores={c9_tick=1}] at @s run summon minecraft:item_display ~ ~1.5 ~-3 {Tags:["c9_ent","c9_weaver"],Glowing:1b,glow_color_override:16755200,item:{id:"minecraft:gold_block",count:1},transformation:{left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f],scale:[1.1f,2.8f,1.1f],translation:[0f,0f,0f]}}/execute as @e[tag=c9_weaver] run scoreboard players add @s c9_step 1/execute as @e[tag=c9_weaver,scores={c9_step=2..}] store result score @s c9_dir run random value 0..3/execute as @e[tag=c9_weaver,scores={c9_step=2..,c9_dir=0}] at @s unless block ~3 ~ ~ minecraft:deepslate_bricks unless block ~3 ~ ~ minecraft:air run tp @s ~3 ~ ~/execute as @e[tag=c9_weaver,scores={c9_step=2..,c9_dir=1}] at @s unless block ~-3 ~ ~ minecraft:deepslate_bricks unless block ~-3 ~ ~ minecraft:air run tp @s ~-3 ~ ~/execute as @e[tag=c9_weaver,scores={c9_step=2..,c9_dir=2}] at @s unless block ~ ~ ~3 minecraft:deepslate_bricks unless block ~ ~ ~3 minecraft:air run tp @s ~ ~ ~3/execute as @e[tag=c9_weaver,scores={c9_step=2..,c9_dir=3}] at @s unless block ~ ~ ~-3 minecraft:deepslate_bricks unless block ~ ~ ~-3 minecraft:air run tp @s ~ ~ ~-3/execute as @e[tag=c9_weaver,scores={c9_step=2..}] at @s run fill ~-1 ~-1 ~-1 ~1 ~2 ~1 minecraft:air replace minecraft:deepslate_tiles/execute as @e[tag=c9_weaver,scores={c9_step=2..}] at @s run setblock ~ ~-2 ~ minecraft:sea_lantern/execute as @e[tag=c9_weaver,scores={c9_step=2..}] at @s run particle minecraft:soul_fire_flame ~ ~1 ~ 0.6 1.2 0.6 0.08 20 forcesetup #6 Fills the interior of the 27x27 deepslate brick outer shell with deepslate tiles. This difference in block types lets the weavers detect the outer border wall so they never escape the arena.loop #7 Uses the native <code>/random value 0..3</code> command to assign each of the four golden weavers a random cardinal direction (North, South, East, or West) every movement step.loop #8 Checks 3 blocks ahead before teleporting. By making sure the destination is not <code>deepslate_bricks</code> (the outer wall) and not already <code>air</code>, the weaver strongly prefers carving into fresh uncarved stone.loop #12 Carves out a 3x4x3 section of <code>deepslate_tiles</code> around the weaver's new position while leaving the outer <code>deepslate_bricks</code> border and floor completely intact.loop #13 Places a glowing <code>sea_lantern</code> in the floor along the path so the carved labyrinth corridors are brightly lit from within.


Recorded on our own test server: 56 frames at about 9.3 fps. Our image check saw: A large block of deepslate bricks is partially carved out into rooms with sea lanterns in the floor, while two glowing golden pillars surrounded by cyan particles float near a central conduit.
Commands, video and screenshots: tested and recorded by www.9minecraft.net © 9Minecraft. Sharing a video or screenshot? Please credit www.9minecraft.net.
To let players trigger a dungeon carve around themselves, replace the c9_ctrl marker summon in setup with a command that tags a player (/tag @p add c9_ctrl) when they drop a special item, and run the setup /fill commands executed at @a[tag=c9_ctrl].
/kill @e[tag=c9_ent]/fill ~-13 ~-1 ~-13 ~13 ~4 ~13 minecraft:air/fill ~-13 ~-1 ~-13 ~13 ~-1 ~13 minecraft:grass_block/scoreboard objectives remove c9_tick/scoreboard objectives remove c9_step/scoreboard objectives remove c9_dirThe outer ring is built from deepslate bricks while the inside is filled with deepslate tiles. The weavers check that the block 3 spaces ahead is not deepslate bricks before moving, and their fill command only replaces deepslate tiles.
Yes! Just kill the entities with /kill @e[tag=c9_ent] and re-run the last 7 setup commands to refill the monolith and spawn a fresh controller.
▶Glitching Farlands Wall GeneratorSelf-building StructuresMedium24 cmds
▶Self-Carving Labyrinth GeneratorSelf-building StructuresHard25 cmds
▶Automated Spire ConstructorSelf-building StructuresMedium19 cmds
▶Colossal Algorithmic Maze BuilderSelf-building StructuresHard22 cmds
▶Glitched Far Lands Terrain GeneratorSelf-building StructuresExpert22 cmds
▶High-Speed Multi-Shape Maze GeneratorSelf-building StructuresHard24 cmds