Autonomous Dungeon Architect

Watch an autonomous cyan drone fly across your stage, procedurally snapping stone chambers, narrow hallways, and gold loot vaults together by itself.

Java EditionComplex Contraptions & CinematicsExpert24 commandsTested on a real 26.2 & 26.3 server
A glowing amethyst drone autonomously builds an open-top stone brick dungeon with gold vaults. Download the GIF Video & GIF © www.9minecraft.net

Self-building StructuresMedievalTechnologyMysticCyanGoldWhiteBuilding ToolMap MakingAdventure MapItem displaysText displaysSmooth animation (interpolation)Block building (fill/setblock/clone)Rotation math21+ commands

A glowing cyan amethyst drone hovers above a central stone hub, firing a beam of particles as it wanders across the stage and builds a connected dungeon on its own. Every half-second, it chooses a new direction, snaps a stone chamber, narrow corridor, or gold-filled loot vault into place, and carves archways through shared walls.

Because the layout uses open-top cutaway rooms with stone_bricks walls and polished_deepslate floors, you can watch the entire interconnected floorplan grow from above without pressing a single button.

1. Setup - type these once 10 commands

  1. /scoreboard objectives add c9 dummy
  2. /scoreboard players set #t c9 0
  3. /summon marker ~ ~ ~ {Tags:["c9_arch"],Rotation:[0f,0f]}
  4. /summon item_display ~ ~6 ~ {Tags:["c9_drone"],item:{id:"minecraft:amethyst_cluster",count:1},Glowing:1b,glow_color_override:65535,teleport_duration:5,transformation:{left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f],translation:[0f,0f,0f],scale:[2.0f,2.0f,2.0f]}}
  5. /summon text_display ~ ~10 ~ {Tags:["c9_label"],text:{text:"Autonomous Dungeon Architect",color:"aqua",bold:true},billboard:"center",background:1073741824,transformation:{left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f],translation:[0f,0f,0f],scale:[1.6f,1.6f,1.6f]}}
  6. /fill ~-3 ~1 ~-3 ~3 ~3 ~3 stone_bricks
  7. /fill ~-2 ~1 ~-2 ~2 ~3 ~2 air
  8. /fill ~-3 ~0 ~-3 ~3 ~0 ~3 polished_deepslate
  9. /setblock ~ ~0 ~ sea_lantern
  10. /setblock ~ ~1 ~ enchanting_table

2. Loop - one repeating command block each (Always Active) 14 commands

  1. /scoreboard players add #t c9 1
  2. /execute if score #t c9 matches 9.. run scoreboard players set #t c9 0
  3. /execute if score #t c9 matches 1 store result entity @e[tag=c9_arch,limit=1] Rotation[0] float 90 run random value 0..3
  4. /execute if score #t c9 matches 1 as @e[tag=c9_arch,limit=1] at @s run tp @s ^ ^ ^6
  5. /execute if score #t c9 matches 1 if entity @e[tag=c9_arch,distance=17.5..] as @e[tag=c9_arch,limit=1] at @s run tp @s ^ ^ ^-12 ~180 0
  6. /execute if score #t c9 matches 2 at @e[tag=c9_arch,limit=1] if block ^ ^ ^ air store result score #type c9 run random value 0..2
  7. /execute if score #t c9 matches 2 at @e[tag=c9_arch,limit=1] if block ^ ^ ^ air run fill ^-3 ^1 ^-3 ^3 ^3 ^3 stone_bricks
  8. /execute if score #t c9 matches 3 at @e[tag=c9_arch,limit=1] if block ^ ^ ^ air unless score #type c9 matches 0 run fill ^-2 ^1 ^-2 ^2 ^3 ^2 air
  9. /execute if score #t c9 matches 3 at @e[tag=c9_arch,limit=1] if block ^ ^ ^ air if score #type c9 matches 0 run fill ^-1 ^1 ^-2 ^1 ^3 ^2 air
  10. /execute if score #t c9 matches 3 at @e[tag=c9_arch,limit=1] run fill ^-1 ^1 ^-4 ^1 ^3 ^-2 air
  11. /execute if score #t c9 matches 4 at @e[tag=c9_arch,limit=1] if block ^ ^ ^ air if score #type c9 matches 2 run fill ^-1 ^1 ^-1 ^1 ^1 ^1 gold_block
  12. /execute if score #t c9 matches 4 at @e[tag=c9_arch,limit=1] if block ^ ^ ^ air run fill ^-3 ^0 ^-3 ^3 ^0 ^3 polished_deepslate
  13. /execute as @e[tag=c9_drone,limit=1] at @s positioned as @e[tag=c9_arch,limit=1] run tp @s ~ ~6 ~ ~15 0
  14. /execute at @e[tag=c9_drone,limit=1] run particle dust{color:[0.1,0.9,1.0],scale:1.6} ~ ~-2.5 ~ 0.15 1.8 0.15 0 12 force

How it works

Frames from the test run

Autonomous Dungeon Architect - frame 1Autonomous Dungeon Architect - frame 2Autonomous Dungeon Architect - frame 3

Recorded on our own test server: 59 frames at about 9.8 fps. Our image check saw: A glowing cyan amethyst item hovers over an open-top stone brick dungeon, trailing cyan particles as new chambers with doorways snap into place beside gold-filled rooms.

Commands, video and screenshots: tested and recorded by www.9minecraft.net © 9Minecraft. Sharing a video or screenshot? Please credit www.9minecraft.net.

Build it in your world

  1. Clear a flat 41x41 area in your world and stand at the exact center on the block above the ground.
  2. Run each of the 10 setup commands once in order using chat or impulse command blocks to create the central hub, marker, and drone.
  3. Place 14 repeating command blocks in a row, set all of them to Always Active, and paste one loop command into each block.
  4. Ensure the repeating command blocks execute at the center of your 41x41 area (or wrap each with execute positioned <x> <y> <z> run ...).
  5. Watch the cyan drone wander across the grid and connect stone chambers, hallways, and gold loot rooms automatically.
  6. To remove everything later, turn off the repeating command blocks and run the cleanup commands.

Remove it again 5 commands

  1. /kill @e[tag=c9_arch]
  2. /kill @e[tag=c9_drone]
  3. /kill @e[tag=c9_label]
  4. /scoreboard objectives remove c9
  5. /fill ~-18 ~0 ~-18 ~18 ~5 ~18 air

FAQ

What happens when the drone visits a room that was already built?

Every room placement checks if block ^ ^ ^ air before building, so existing chambers and gold vaults are never overwritten. However, the doorway command still runs, carving a new archway that links nearby rooms into loops.

Why does the dungeon build without solid stone roofs?

The rooms use an open-top cutaway layout so the camera can see the polished_deepslate floors, narrow corridors, connecting doorways, and gold_block vaults from above as they snap together.

Commands used

/execute/fill/particle/random/scoreboard/setblock/summon/tp

Similar creations

Join 9Minecraft News & Guides