Four glowing builder spirits march outward from a central golden sanctum, automatically constructing open deepslate corridors, pillars, and treasure chambers.
Self-building StructuresDarkMedievalMysticGoldCyanBlackBuilding ToolAdventure MapMap MakingItem displaysArmor standsBlock building (fill/setblock/clone)Rotation math21+ commands
Building a massive dungeon by hand takes hours, so why not let four glowing builder spirits construct one for you? In this command creation, a central sanctum with a golden treasure pedestal and a giant spinning conduit core materializes on an empty grid while four spectral builders march outward in every direction.
As the builders glide along the pathways, they raise deepslate brick corridors, carve out archways, light the halls with sea lanterns, and finish by assembling four glowing outer treasure chambers before resetting the cycle to build again.
/scoreboard objectives add c9_t dummy/fill ~-16 ~-1 ~-16 ~16 ~-1 ~16 deepslate_tiles/fill ~-16 ~-1 ~-2 ~16 ~-1 ~2 polished_deepslate/fill ~-2 ~-1 ~-16 ~2 ~-1 ~16 polished_deepslate/summon armor_stand ~ ~ ~ {Tags:["c9_core"],Invisible:1b,NoGravity:1b,Marker:1b}/summon item_display ~ ~4.5 ~ {Tags:["c9_core","c9_orb"],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],translation:[0f,0f,0f],scale:[2.5f,2.5f,2.5f]}}/summon armor_stand ~ ~ ~ {Tags:["c9_b","c9_ns"],NoGravity:1b,Glowing:1b,ShowArms:1b,Rotation:[180f,0f],equipment:{head:{id:"minecraft:sea_lantern",count:1},chest:{id:"minecraft:diamond_chestplate",count:1},mainhand:{id:"minecraft:golden_pickaxe",count:1}}}/summon armor_stand ~ ~ ~ {Tags:["c9_b","c9_ns"],NoGravity:1b,Glowing:1b,ShowArms:1b,Rotation:[0f,0f],equipment:{head:{id:"minecraft:sea_lantern",count:1},chest:{id:"minecraft:diamond_chestplate",count:1},mainhand:{id:"minecraft:golden_pickaxe",count:1}}}/summon armor_stand ~ ~ ~ {Tags:["c9_b","c9_ew"],NoGravity:1b,Glowing:1b,ShowArms:1b,Rotation:[-90f,0f],equipment:{head:{id:"minecraft:sea_lantern",count:1},chest:{id:"minecraft:diamond_chestplate",count:1},mainhand:{id:"minecraft:golden_pickaxe",count:1}}}/summon armor_stand ~ ~ ~ {Tags:["c9_b","c9_ew"],NoGravity:1b,Glowing:1b,ShowArms:1b,Rotation:[90f,0f],equipment:{head:{id:"minecraft:sea_lantern",count:1},chest:{id:"minecraft:diamond_chestplate",count:1},mainhand:{id:"minecraft:golden_pickaxe",count:1}}}/execute as @e[tag=c9_core,type=armor_stand] run scoreboard players add @s c9_t 1/execute as @e[tag=c9_orb] at @s run tp @s ~ ~ ~ ~8 ~/execute as @e[tag=c9_core,type=armor_stand,scores={c9_t=1}] at @s run fill ~-15 ~ ~-15 ~15 ~6 ~15 air/execute as @e[tag=c9_core,type=armor_stand,scores={c9_t=2}] at @s run tp @e[tag=c9_b] ~ ~ ~/execute as @e[tag=c9_core,type=armor_stand,scores={c9_t=5}] at @s run fill ~-3 ~ ~-3 ~3 ~3 ~3 deepslate_bricks hollow/execute as @e[tag=c9_core,type=armor_stand,scores={c9_t=8}] at @s run fill ~-1 ~ ~-3 ~1 ~2 ~3 air/execute as @e[tag=c9_core,type=armor_stand,scores={c9_t=10}] at @s run fill ~-3 ~ ~-1 ~3 ~2 ~1 air/execute as @e[tag=c9_core,type=armor_stand,scores={c9_t=12}] at @s run fill ~-1 ~ ~-1 ~1 ~ ~1 gold_block/execute as @e[tag=c9_core,type=armor_stand,scores={c9_t=15..66}] run execute as @e[tag=c9_b] at @s run tp @s ^ ^ ^0.25/execute as @e[tag=c9_core,type=armor_stand,scores={c9_t=28..56}] run execute at @e[tag=c9_ns] run fill ~-2 ~ ~ ~2 ~2 ~ deepslate_bricks/execute as @e[tag=c9_core,type=armor_stand,scores={c9_t=28..56}] run execute at @e[tag=c9_ew] run fill ~ ~ ~-2 ~ ~2 ~2 deepslate_bricks/execute as @e[tag=c9_core,type=armor_stand,scores={c9_t=28..67}] run execute at @e[tag=c9_b] run fill ~-1 ~ ~-1 ~1 ~2 ~1 air/execute as @e[tag=c9_core,type=armor_stand,scores={c9_t=67}] run execute at @e[tag=c9_b] run fill ~-2 ~ ~-2 ~2 ~2 ~2 sea_lantern hollow/execute as @e[tag=c9_core,type=armor_stand,scores={c9_t=1..115}] at @e[tag=c9_b] run particle soul_fire_flame ~ ~1.2 ~ 0.6 0.8 0.6 0.04 6 forcesetup #1 Creates the <code>c9_t</code> scoreboard objective to track the construction timeline tick by tick.setup #6 Summons a large glowing conduit <code>item_display</code> high above the central sanctum to act as the dungeon core.setup #7 Summons the North-South builder armor stands equipped with glowing sea lantern heads, diamond armor, and golden pickaxes.loop #5 Builds the 7x4x7 central deepslate sanctum box around the origin at tick 5.loop #9 Moves all four builder spirits smoothly forward by 0.25 blocks every tick using local coordinates (<code>^ ^ ^0.25</code>) between ticks 15 and 66.loop #10 Raises deepslate brick corridor walls along the North and South paths while command 12 immediately carves out the 3x3 walkable interior behind each builder.loop #13 Constructs glowing sea lantern treasure rooms at the four outer ends of the corridors once the builders reach their destination at tick 67.


Recorded on our own test server: 59 frames at about 9.7 fps. Our image check saw: A deepslate brick structure with four branching corridors, sea lantern rooms, and glowing outlined entities at the center and ends.
Commands, video and screenshots: tested and recorded by www.9minecraft.net © 9Minecraft. Sharing a video or screenshot? Please credit www.9minecraft.net.
To trigger a dungeon build around yourself in survival or adventure mode, replace @e[tag=c9_core,type=armor_stand] in the setup and loop commands with @a[tag=c9_actor], and summon the four builder armor stands at your position whenever you drop or hold a specific trigger item.
/fill ~-16 ~ ~-16 ~16 ~10 ~16 air/fill ~-16 ~-1 ~-16 ~16 ~-1 ~16 grass_block/kill @e[tag=c9_core]/kill @e[tag=c9_b]/scoreboard objectives remove c9_tChaining <code>at @e[tag=c9_n] at @e[tag=c9_s]</code> in a single command only executes at the last entity in the chain. Grouping North-South builders under a single tag (<code>c9_ns</code>) and East-West builders under <code>c9_ew</code> makes all four corridors build simultaneously, and removing the roof slabs lets you see inside the hallways from above.
Increase the upper score limit on loop commands 9, 10, 11, and 12 (for example from <code>66</code> to <code>90</code>) and shift the outer chamber tick in command 13 to match the new end tick.
▶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-Carving LabyrinthSelf-building StructuresHard24 cmds
▶Self-Generating Dungeon MazeSelf-building StructuresExpert24 cmds