Watch glowing architect orbs branch out from a central gold hub, carving stone corridors and stamping down color-coded dungeon rooms automatically.
Self-building StructuresMedievalDarkGoldBlackRainbowAdventure MapMini-gameMap MakingArmor standsSummoned mobsBlock building (fill/setblock/clone)Rotation math21+ commands
This command creation turns a blank obsidian platform into a self-building dungeon layout right before your eyes. Four glowing architect orbs branch out from a central gold beacon hub, carving open stone-brick corridors and stamping down color-coded chambers as they travel across the grid.
Every half-second, the builders step onto uncarved obsidian and construct new rooms: cyan chambers form standard dungeon rooms, crimson rooms sprout ominous soul lanterns, and gold rooms spawn treasure chests. When the maze completes, it resets and generates a fresh layout automatically.
/scoreboard objectives add c9_t dummy/fill ~-16 ~-1 ~-16 ~16 ~-1 ~16 minecraft:obsidian/fill ~-16 ~ ~-16 ~16 ~3 ~16 minecraft:air/fill ~-2 ~-1 ~-2 ~2 ~-1 ~2 minecraft:gold_block/fill ~-2 ~ ~-2 ~2 ~1 ~2 minecraft:stone_brick_wall/fill ~-1 ~ ~-1 ~1 ~1 ~1 minecraft:air/setblock ~ ~ ~ minecraft:beacon/summon minecraft:armor_stand ~ ~ ~ {Tags:["c9_core","c9_ent"],NoGravity:1b,Invisible:1b}/summon minecraft:armor_stand ~ ~ ~ {Tags:["c9_b","c9_b1","c9_ent"],NoGravity:1b,Invisible:1b,Glowing:1b,Rotation:[0f,0f],equipment:{head:{id:"minecraft:sea_lantern",count:1}}}/summon minecraft:armor_stand ~ ~ ~ {Tags:["c9_b","c9_b2","c9_ent"],NoGravity:1b,Invisible:1b,Glowing:1b,Rotation:[90f,0f],equipment:{head:{id:"minecraft:shroomlight",count:1}}}/execute if entity @e[tag=c9_core,scores={c9_t=1}] run summon minecraft:armor_stand ~ ~ ~ {Tags:["c9_b","c9_b3","c9_ent"],NoGravity:1b,Invisible:1b,Glowing:1b,Rotation:[180f,0f],equipment:{head:{id:"minecraft:ochre_froglight",count:1}}}/execute if entity @e[tag=c9_core,scores={c9_t=1}] run summon minecraft:armor_stand ~ ~ ~ {Tags:["c9_b","c9_b4","c9_ent"],NoGravity:1b,Invisible:1b,Glowing:1b,Rotation:[270f,0f],equipment:{head:{id:"minecraft:verdant_froglight",count:1}}}/scoreboard players add @e[tag=c9_ent] c9_t 1/execute as @e[tag=c9_b] at @s run particle minecraft:end_rod ~ ~1.5 ~ 0.2 0.3 0.2 0.02 2 force/execute as @e[tag=c9_b] at @s if block ~ ~-1 ~ minecraft:obsidian run fill ~-2 ~ ~-2 ~2 ~1 ~2 minecraft:stone_bricks/execute as @e[tag=c9_b] at @s if block ~ ~-1 ~ minecraft:obsidian run fill ~-1 ~ ~-1 ~1 ~1 ~1 minecraft:air/execute as @e[tag=c9_b] at @s if block ~ ~-1 ~ minecraft:obsidian run fill ~-1 ~-1 ~-1 ~1 ~-1 ~1 minecraft:cyan_terracotta/execute as @e[tag=c9_b] at @s if block ~ ~-1 ~ minecraft:obsidian run particle minecraft:totem_of_undying ~ ~1 ~ 0.6 0.5 0.6 0.15 20 force/execute if entity @e[tag=c9_core,scores={c9_t=25}] as @e[tag=c9_b1] at @s run fill ~-1 ~-1 ~-1 ~1 ~-1 ~1 minecraft:gold_block/execute if entity @e[tag=c9_core,scores={c9_t=45}] as @e[tag=c9_b2] at @s run fill ~-1 ~-1 ~-1 ~1 ~-1 ~1 minecraft:crimson_nylium/execute if entity @e[tag=c9_core,scores={c9_t=65}] as @e[tag=c9_b3] at @s run fill ~-1 ~-1 ~-1 ~1 ~-1 ~1 minecraft:gold_block/execute as @e[tag=c9_b] at @s if block ~ ~-1 ~ minecraft:gold_block unless block ~ ~ ~ minecraft:beacon run setblock ~ ~ ~ minecraft:chest/execute as @e[tag=c9_b] at @s if block ~ ~-1 ~ minecraft:crimson_nylium run setblock ~ ~ ~ minecraft:soul_lantern/execute as @e[tag=c9_b,scores={c9_t=10..}] at @s store success score @s c9_t if block ^ ^-1 ^4 minecraft:obsidian run tp @s ^ ^ ^4 ~90 ~/execute as @e[tag=c9_b,scores={c9_t=10..}] at @s run tp @s ~ ~ ~ ~90 ~setup #2 Creates the 33x33 blank obsidian canvas that the architect entities detect to know where uncarved space remains.setup #9 Summons the first glowing architect orb wearing a sea lantern on its head using the modern equipment component format.loop #5 Whenever an architect lands on raw obsidian, it builds a 5x5 stone brick room boundary at only 2 blocks tall so the overhead camera can clearly see the colorful floors inside.loop #7 Stamps down a 3x3 cyan terracotta floor inside the newly carved stone brick room.loop #9 At specific timer intervals, upgrades selected rooms into gold treasure rooms or crimson hazard rooms.loop #14 Every 10 ticks (half a second), checks 4 blocks ahead for uncarved obsidian. If found, the builder teleports forward, carves the doorway, Turns 90 degrees, and resets its step timer to 1.loop #15 If the space 4 blocks ahead is already carved or out of bounds, the architect rotates 90 degrees in place to scan a new direction on the next tick.


Recorded on our own test server: 58 frames at about 9.6 fps. Our image check saw: A generated grid of stone-brick chambers with color-coded rooms and chests sits on an obsidian base around a central gold beacon, with four glowing builder entities positioned across the layout.
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 trigger dungeon generation on demand with a custom item, replace the c9_core timer condition with a check for a player holding a named blaze rod (@a[nbt={SelectedItem:{id:"minecraft:blaze_rod"}}]), and summon the four c9_b architect orbs directly at the player's position aligned to the 4-block grid.
/kill @e[tag=c9_ent]/scoreboard objectives remove c9_t/fill ~-16 ~-1 ~-16 ~16 ~-1 ~16 minecraft:grass_block/fill ~-16 ~ ~-16 ~16 ~4 ~16 minecraft:airBefore stepping 4 blocks forward, each orb checks if the floor block at ^ ^-1 ^4 is obsidian. Because the area outside the 33x33 canvas is grass, they automatically turn 90 degrees back inward.
Edit the fill commands in the loop that place cyan_terracotta, gold_block, and crimson_nylium to any block palette you prefer, just keep obsidian reserved for the uncarved floor.
▶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 Dungeon MazeSelf-building StructuresHard24 cmds
▶Self-Building Procedural DungeonSelf-building StructuresExpert24 cmds