Autonomous Room-Stitching Engine

Build a self-driving Minecraft dungeon generator with vanilla commands! Watch a glowing architect core scan and stamp down connected, open-top gilded chambers.

Java EditionComplex Contraptions & CinematicsHard24 commandsTested on a real 26.2 & 26.3 server
A glowing holographic core hovers over a platform, automatically generating stone brick chambers with blue particles. Download the GIF Video & GIF © www.9minecraft.net

Self-building StructuresTechnologyMedievalCyanBlueGoldBuilding ToolMap MakingAdventure MapBlock displaysBlock building (fill/setblock/clone)Rotation math21+ commands

The Autonomous Room-Stitching Engine is a self-driving dungeon generator powered purely by vanilla Minecraft commands. When activated, a spinning holographic architect core hovers across the platform, projecting cyan laser grids onto empty space before stamping down walled stone brick chambers, gilded blackstone floors, and glowing sea lanterns.

Unlike enclosed boxes that hide the interior, this generator builds open-top cut-away dungeon wings around a central sanctuary and automatically carves arched doorways and glowing gold floor paths between every adjacent room as it expands.

1. Setup - type these once 10 commands

  1. /scoreboard objectives add c9_timer dummy
  2. /scoreboard objectives add c9_step dummy
  3. /fill ~-16 ~-1 ~-16 ~16 ~-1 ~16 deepslate_tiles
  4. /fill ~-16 ~-1 ~-1 ~16 ~-1 ~1 polished_blackstone_bricks
  5. /fill ~-1 ~-1 ~-16 ~1 ~-1 ~16 polished_blackstone_bricks
  6. /fill ~-3 ~-1 ~-3 ~3 ~3 ~3 stone_bricks hollow
  7. /fill ~-2 ~3 ~-2 ~2 ~3 ~2 tinted_glass
  8. /fill ~-2 ~-1 ~-2 ~2 ~-1 ~2 gilded_blackstone
  9. /setblock ~ ~-1 ~ sea_lantern
  10. /summon block_display ~ ~4.5 ~ {Tags:["c9_core"],Glowing:1b,block_state:{Name:"minecraft:beacon"},transformation:{left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f],scale:[1.4f,1.4f,1.4f],translation:[-0.7f,-0.7f,-0.7f]}}

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

  1. /scoreboard players add @e[tag=c9_core] c9_timer 1
  2. /execute as @e[tag=c9_core,scores={c9_timer=18..}] run scoreboard players add @s c9_step 1
  3. /execute as @e[tag=c9_core,scores={c9_timer=18..}] run scoreboard players set @s c9_timer 0
  4. /execute as @e[tag=c9_core] at @s run tp @s ~ ~ ~ ~12 ~
  5. /execute at @e[tag=c9_core] run particle dust{color:[0.0,0.95,1.0],scale:2.0} ~ ~-1.5 ~ 2.4 1.5 2.4 0 25
  6. /execute at @e[tag=c9_core] run particle end_rod ~ ~-2 ~ 1.5 1.2 1.5 0.03 8
  7. /execute as @e[tag=c9_core,scores={c9_timer=1,c9_step=1}] run tp @s ~6 ~4.5 ~
  8. /execute as @e[tag=c9_core,scores={c9_timer=1,c9_step=2}] run tp @s ~6 ~4.5 ~6
  9. /execute as @e[tag=c9_core,scores={c9_timer=1,c9_step=3}] run tp @s ~ ~4.5 ~6
  10. /execute as @e[tag=c9_core,scores={c9_timer=1,c9_step=4}] run tp @s ~-6 ~4.5 ~6
  11. /execute as @e[tag=c9_core,scores={c9_timer=1,c9_step=5}] run tp @s ~-6 ~4.5 ~
  12. /execute as @e[tag=c9_core,scores={c9_timer=1,c9_step=6}] run tp @s ~-6 ~4.5 ~-6
  13. /execute as @e[tag=c9_core,scores={c9_timer=1,c9_step=7}] run tp @s ~ ~4.5 ~-6
  14. /execute at @e[tag=c9_core,scores={c9_timer=10,c9_step=1..7}] run fill ~-3 ~-5.5 ~-3 ~3 ~-1.5 ~3 stone_bricks outline

How it works

Frames from the test run

Autonomous Room-Stitching Engine - frame 1Autonomous Room-Stitching Engine - frame 2Autonomous Room-Stitching Engine - frame 3

Recorded on our own test server: 39 frames at about 6.4 fps. Our image check saw: A glowing spinning core hovers with blue particles, automatically building stone brick structures over a dark platform.

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. Stand at the center of a flat 41x41 area where you want your dungeon complex to generate.
  2. Run each of the 10 setup commands in chat to create the scoreboards, build the central sanctuary room, and summon the glowing architect core.
  3. Place a stack of 14 repeating command blocks (or 1 repeating command block chained into 13 chain command blocks) set to Always Active.
  4. Paste the 14 loop commands in order into the command blocks.
  5. Watch the glowing architect core hover to each sector, project cyan scanning particles, and stamp down stitched stone brick dungeon rooms.

Use it with real players

To let a player manually steer where rooms are stitched, replace the automated step teleport commands (loop commands 7 through 13) with /execute at @p run tp @e[tag=c9_core] ^ ^3 ^6 so the architect core hovers 6 blocks ahead of wherever you look and builds dungeon rooms along your path.

Remove it again 5 commands

  1. /kill @e[tag=c9_core]
  2. /scoreboard objectives remove c9_timer
  3. /scoreboard objectives remove c9_step
  4. /fill ~-16 ~ ~-16 ~16 ~8 ~16 air
  5. /fill ~-16 ~-1 ~-16 ~16 ~-1 ~16 grass_block

FAQ

Why does the architect core hover at 4.5 blocks above the floor?

Hovering at Y+4.5 keeps the glowing beacon core directly above the 4-block-tall stone brick walls so you can always see it scanning and stamping rooms from a high camera angle.

Can I change the size or block palette of the generated rooms?

Yes! Edit the final loop command's relative coordinates and block type (for example, changing stone_bricks to deepslate_bricks) to customize every room the core stamps down.

Commands used

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

Similar creations

Join 9Minecraft News & Guides