Watch four glowing builders dash across an obsidian grid as towering stone bricks and lantern-topped pillars erupt from the floor to weave a live maze.
Self-building StructuresMysticMedievalDarkCyanBlackMini-gameMap MakingCinematicBlock displaysArmor standsSmooth animation (interpolation)Block building (fill/setblock/clone)Rotation math21+ commands
The Self-Carving Labyrinth turns a flat platform into an ever-growing stone maze right before your eyes. From a glowing central nexus, four spectral weavers dart outward at ninety-degree angles, trailing cyan energy and raising five-block-tall stone brick walls crowned with sea lanterns directly from the ground.
Each builder checks the path ahead before moving: if it hits the outer border or an existing corridor, it automatically turns ninety degrees and carves a fresh pathway, packing the arena with intricate winding corridors.
/scoreboard objectives add c9_timer dummy/fill ~-14 ~-1 ~-14 ~14 ~-1 ~14 crying_obsidian/fill ~-13 ~-1 ~-13 ~13 ~-1 ~13 deepslate_tiles/fill ~-1 ~-1 ~-1 ~1 ~-1 ~1 chiseled_polished_blackstone/setblock ~ ~ ~ beacon/summon block_display ~-0.5 ~1.5 ~-0.5 {Tags:["c9_all","c9_core"],Glowing:1b,glow_color_override:65535,block_state:{Name:"minecraft:sea_lantern"},transformation:{translation:[0f,0f,0f],left_rotation:[0f,0f,0f,1f],scale:[1f,1f,1f],right_rotation:[0f,0f,0f,1f]}}/summon armor_stand ~ ~ ~-2 {Tags:["c9_all","c9_carver"],NoGravity:1b,Invisible:1b,Rotation:[180f,0f]}/summon armor_stand ~2 ~ ~ {Tags:["c9_all","c9_carver"],NoGravity:1b,Invisible:1b,Rotation:[-90f,0f]}/summon armor_stand ~ ~ ~2 {Tags:["c9_all","c9_carver"],NoGravity:1b,Invisible:1b,Rotation:[0f,0f]}/summon armor_stand ~-2 ~ ~ {Tags:["c9_all","c9_carver"],NoGravity:1b,Invisible:1b,Rotation:[90f,0f]}/scoreboard players add #tick c9_timer 1/scoreboard players add @e[tag=c9_pillar] c9_timer 1/execute as @e[tag=c9_core] at @s run tp @s ~ ~ ~ ~6 ~/particle sculk_soul ~ ~2 ~ 0.6 0.6 0.6 0.03 2 force/execute as @e[tag=c9_carver] at @s run particle soul_fire_flame ~ ~1.5 ~ 0.15 0.5 0.15 0.01 3 force/execute if score #tick c9_timer matches 4.. as @e[tag=c9_carver] at @s if block ^ ^-1 ^3 crying_obsidian run tp @s ~ ~ ~ ~90 ~/execute if score #tick c9_timer matches 4.. as @e[tag=c9_carver] at @s if block ^ ^ ^2 stone_bricks run tp @s ~ ~ ~ ~90 ~/execute if score #tick c9_timer matches 4.. as @e[tag=c9_carver] at @s unless block ^ ^ ^2 stone_bricks unless block ^ ^-1 ^3 crying_obsidian run summon block_display ~-0.45 ~ ~-0.45 {Tags:["c9_all","c9_pillar"],Glowing:1b,glow_color_override:5636095,block_state:{Name:"minecraft:chiseled_stone_bricks"},transformation:{translation:[0f,0f,0f],left_rotation:[0f,0f,0f,1f],scale:[0.9f,0.2f,0.9f],right_rotation:[0f,0f,0f,1f]}}/execute if score #tick c9_timer matches 4.. as @e[tag=c9_carver] at @s unless block ^ ^ ^2 stone_bricks unless block ^ ^-1 ^3 crying_obsidian run fill ^ ^ ^ ^ ^4 ^2 stone_bricks replace air/execute if score #tick c9_timer matches 4.. as @e[tag=c9_carver] at @s unless block ^ ^-1 ^3 crying_obsidian run setblock ~ ~5 ~ sea_lantern/execute if score #tick c9_timer matches 4.. as @e[tag=c9_carver] at @s unless block ^ ^-1 ^3 crying_obsidian run tp @s ^ ^ ^2 ~90 ~/execute as @e[tag=c9_pillar,scores={c9_timer=2}] run data merge entity @s {start_interpolation:0,interpolation_duration:12,transformation:{translation:[0f,0f,0f],left_rotation:[0f,0f,0f,1f],scale:[0.9f,5.6f,0.9f],right_rotation:[0f,0f,0f,1f]}}/kill @e[tag=c9_pillar,scores={c9_timer=18..}]/execute if score #tick c9_timer matches 4.. run scoreboard players set #tick c9_timer 0setup #7 Summons the first invisible <code>c9_carver</code> armor stand facing north; three more are placed facing east, south, and west around the central beacon.loop #6 Checks 3 blocks ahead at floor level for the <code>crying_obsidian</code> border. If the builder reaches the edge of the arena, it rotates 90 degrees clockwise.loop #7 Looks 2 blocks ahead for an existing <code>stone_bricks</code> wall so the builders bounce off finished corridors instead of overwriting them.loop #8 Spawns a glowing <code>block_display</code> pillar at each corner junction right before the real blocks rise, giving every new wall segment a bright cyan eruption animation.loop #9 Uses local coordinates (<code>^ ^ ^ ^ ^4 ^2</code>) to build a 3-block-long, 5-block-tall stone brick wall segment in the exact direction the carver is facing.loop #12 Triggers smooth scale interpolation on the newly spawned display pillar so it shoots upward to 5.6 blocks tall over 12 ticks before being cleaned up.


Recorded on our own test server: 51 frames at about 8.4 fps. Our image check saw: A partially formed maze of stone brick walls topped with sea lanterns branches out in four directions from a spinning, cyan-glowing central block on a dark tiled platform.
Commands, video and screenshots: tested and recorded by www.9minecraft.net © 9Minecraft. Sharing a video or screenshot? Please credit www.9minecraft.net.
To let a player carve labyrinth walls behind themselves as they walk, add tag c9_carver to yourself with /tag @s add c9_carver and remove the tp @s commands in loop steps 6, 7, and 11 so your own movement and look direction control where the 5-block walls erupt.
/kill @e[tag=c9_all]/fill ~-14 ~ ~-14 ~14 ~6 ~14 air/fill ~-14 ~-1 ~-14 ~14 ~-1 ~14 grass_block/scoreboard objectives remove c9_timerStepping 2 blocks per cycle leaves a 1-block walkable corridor between parallel stone brick walls so the finished structure forms a true grid maze.
No. Each glowing rising pillar is only used for the 0.9-second pop-up animation and is automatically removed once its scoreboard timer reaches 18 ticks.
/data/execute/fill/kill/particle/scoreboard/setblock/summon/tp
▶Procedural Dungeon BuilderSelf-building StructuresHard26 cmds
▶Procedural Floating Dungeon ComplexSelf-building StructuresExpert24 cmds
▶Self-Assembling Dungeon ComplexSelf-building StructuresExpert24 cmds
▶Self-Assembling LabyrinthSelf-building StructuresMedium22 cmds
▶Self-Building Procedural DungeonSelf-building StructuresHard24 cmds
▶Self-Generating Dungeon MazeSelf-building StructuresExpert24 cmds