Summon four glowing builder orbs that carve an interlocking deepslate dungeon maze, hang soul lanterns, and arm fire traps around a central loot vault.
Self-building StructuresDarkMedievalFireBlackCyanOrangeAdventure MapBuilding ToolMini-gameItem displaysArmor standsBlock building (fill/setblock/clone)Glowing outlinesRotation math21+ commands
Building a dungeon by hand takes hours, so why not let magic do the work? This command creation summons four glowing builder orbs that zip across a dark foundation, carving out interlocking deepslate corridors, lighting up soul lanterns, and arming fire traps right in front of your eyes.
At the heart of the labyrinth sits a rotating crystal beacon guarding a gilded treasure chamber. Every corridor is carved live with bursts of soul fire and flying stone debris, visible in full view from start to finish.
/scoreboard objectives add c9_t dummy/scoreboard players set #tick c9_t 0/fill ~-14 ~-1 ~-14 ~14 ~-1 ~14 polished_deepslate/fill ~-14 ~ ~-14 ~14 ~2 ~14 deepslate_bricks/fill ~-15 ~-1 ~-15 ~15 ~2 ~15 chiseled_deepslate outline/fill ~-14 ~3 ~-14 ~14 ~3 ~14 air/fill ~-3 ~ ~-3 ~3 ~2 ~3 air/fill ~-3 ~-1 ~-3 ~3 ~-1 ~3 gilded_blackstone/summon item_display ~ ~1.8 ~ {Tags:["c9_m","c9_core"],Glowing:1b,glow_color_override:65535,item:{id:"minecraft:beacon"},transformation:{left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f],translation:[0f,0f,0f],scale:[1.2f,1.2f,1.2f]}}/summon armor_stand ~-8 ~ ~-8 {Tags:["c9_m","c9_b","c9_b1"],NoGravity:1b,Invisible:1b,Glowing:1b,equipment:{head:{id:"minecraft:sea_lantern",count:1}}}/scoreboard players add #tick c9_t 1/execute if score #tick c9_t matches 1 run summon armor_stand ~8 ~ ~-8 {Tags:["c9_m","c9_b","c9_b2"],NoGravity:1b,Invisible:1b,Glowing:1b,Rotation:[90f,0f],equipment:{head:{id:"minecraft:shroomlight",count:1}}}/execute if score #tick c9_t matches 1 run summon armor_stand ~8 ~ ~8 {Tags:["c9_m","c9_b","c9_b3"],NoGravity:1b,Invisible:1b,Glowing:1b,Rotation:[180f,0f],equipment:{head:{id:"minecraft:ochre_froglight",count:1}}}/execute if score #tick c9_t matches 1 run summon armor_stand ~-8 ~ ~8 {Tags:["c9_m","c9_b","c9_b4"],NoGravity:1b,Invisible:1b,Glowing:1b,Rotation:[270f,0f],equipment:{head:{id:"minecraft:verdant_froglight",count:1}}}/execute if score #tick c9_t matches 1 run setblock ~ ~ ~ chest[facing=south]{Items:[{Slot:13b,id:"minecraft:enchanted_golden_apple",count:3}]}/execute if score #tick c9_t matches 2..130 as @e[tag=c9_b] at @s run tp @s ~ ~ ~ ~90 ~/execute if score #tick c9_t matches 2..130 as @e[tag=c9_b] at @s if block ^ ^ ^4 deepslate_bricks run fill ^-1 ^ ^1 ^1 ^2 ^4 air/execute if score #tick c9_t matches 2..130 as @e[tag=c9_b] at @s if block ^ ^ ^4 deepslate_bricks run particle block{block_state:{Name:"minecraft:deepslate_bricks"}} ^ ^1.5 ^2 0.8 0.8 0.8 0.15 35/execute if score #tick c9_t matches 2..130 as @e[tag=c9_b] at @s unless block ^ ^ ^4 chiseled_deepslate unless block ^ ^ ^3 chiseled_deepslate unless block ^ ^ ^2 chiseled_deepslate unless block ^ ^ ^1 chiseled_deepslate run tp @s ^ ^ ^4/execute if score #tick c9_t matches 2..130 as @e[tag=c9_b] at @s run particle soul_fire_flame ~ ~2.2 ~ 0.3 0.5 0.3 0.03 10/execute if score #tick c9_t matches 2..130 as @e[tag=c9_b] at @s if block ~ ~-1 ~ polished_deepslate run setblock ~ ~-1 ~ magma_block/execute if score #tick c9_t matches 2..130 as @e[tag=c9_b] at @s if block ~ ~ ~ air run setblock ~ ~2 ~ soul_lantern/execute if score #tick c9_t matches 25 run fill ~-12 ~ ~ ~12 ~2 ~ air/execute as @e[tag=c9_core] at @s run tp @s ~ ~ ~ ~8 ~setup #4 Builds an open-top block of <code>deepslate_bricks</code> three blocks tall with no roof so you can watch the entire maze being carved from above.setup #10 Summons the first builder orb using the modern <code>equipment</code> NBT format to place a glowing block on an invisible armor stand's head.loop #7 Checks 4 blocks ahead of each builder orb for solid <code>deepslate_bricks</code> and carves a 3x3 open corridor toward that spot.loop #9 Moves the builder orb 4 blocks forward onto the newly carved grid node as long as the outer <code>chiseled_deepslate</code> border wall is not in the way.loop #11 Replaces the floor tiles at corridor intersections with glowing <code>magma_block</code> fire traps and places <code>soul_lantern</code> lights above.loop #13 Carves out the main east-west grand hall connecting the central gilded treasure room to the outer maze wings.


Recorded on our own test server: 60 frames at about 9.8 fps. Our image check saw: A large deepslate structure is being carved out with corridors, soul lanterns, a central rotating beacon, and glowing builder entities.
Commands, video and screenshots: tested and recorded by www.9minecraft.net © 9Minecraft. Sharing a video or screenshot? Please credit www.9minecraft.net.
To trigger the dungeon builder around yourself in survival or adventure mode, run the setup and loop commands prefixed with /execute at @p run ... or trigger them when holding a custom item using /execute as @a[nbt={SelectedItem:{id:"minecraft:recovery_compass"}}] at @s run ... so the maze generates around your position.
/kill @e[tag=c9_m]/fill ~-15 ~-1 ~-15 ~15 ~-1 ~15 grass_block/fill ~-15 ~ ~-15 ~15 ~4 ~15 air/scoreboard objectives remove c9_tLeaving the top open lets you watch the glowing orbs carve out the corridors and place lanterns inside; if you want a dark roof afterward, run /fill ~-14 ~3 ~-14 ~14 ~3 ~14 deepslate_tiles once the orbs finish.
Yes! Refill the deepslate brick layer with /fill ~-14 ~ ~-14 ~14 ~2 ~14 deepslate_bricks, clear the center room, and set #tick on scoreboard c9_t back to 0.
▶Automated Dungeon BuilderSelf-building StructuresHard26 cmds
▶Procedural Dungeon BuilderSelf-building StructuresHard26 cmds
▶Procedural Dungeon GeneratorSelf-building StructuresExpert24 cmds
▶Procedural Floating Dungeon ComplexSelf-building StructuresExpert24 cmds
▶Self-Building Procedural DungeonSelf-building StructuresExpert24 cmds
▶Self-Expanding DungeonSelf-building StructuresHard20 cmds