Watch a glowing builder orb construct a lively village plaza with a well, cobblestone roads, timber cottages, roofs, and oak trees piece by piece.
Self-building StructuresMedievalNatureGreenOrangeCyanBuilding ToolMap MakingLearningBlock displaysArmor standsBlock building (fill/setblock/clone)Rotation math21+ commands
The Procedural Town Generator builds a lively village plaza right before your eyes without anyone placing a single block. Glowing builder orbs spiral out from the central town well, laying down cobblestone roads, framing timber cottages, raising roofs, and growing oak trees piece by piece.
By driving multiple plot markers with a single scoreboard clock, each building rises layer by layer in synchronized waves accompanied by bursts of cloud and happy villager particles.
/scoreboard objectives add c9_t dummy/fill ~-14 ~-1 ~-14 ~14 ~-1 ~14 grass_block/fill ~-14 ~ ~-14 ~14 ~12 ~14 air/summon armor_stand ~ ~ ~ {Tags:["c9_gen","c9_main"],Invisible:1b,NoGravity:1b,Marker:1b}/summon block_display ~-0.5 ~4 ~-0.5 {Tags:["c9_gen","c9_orb"],Glowing:1b,glow_color_override:65535,block_state:{Name:"minecraft:sea_lantern"}}/summon armor_stand ~-6 ~ ~-6 {Tags:["c9_gen","c9_plot","c9_house"],Invisible:1b,NoGravity:1b,Marker:1b}/summon armor_stand ~6 ~ ~-6 {Tags:["c9_gen","c9_plot","c9_house"],Invisible:1b,NoGravity:1b,Marker:1b}/summon armor_stand ~-6 ~ ~6 {Tags:["c9_gen","c9_plot","c9_house"],Invisible:1b,NoGravity:1b,Marker:1b}/summon armor_stand ~6 ~ ~6 {Tags:["c9_gen","c9_plot","c9_house"],Invisible:1b,NoGravity:1b,Marker:1b}/summon armor_stand ~-11 ~ ~-11 {Tags:["c9_gen","c9_plot","c9_tree"],Invisible:1b,NoGravity:1b,Marker:1b}/execute as @e[tag=c9_main] run scoreboard players add @s c9_t 1/execute as @e[tag=c9_orb] at @s run tp @s ~ ~ ~ ~12 ~/execute at @e[tag=c9_orb] run particle end_rod ~0.5 ~0.5 ~0.5 0.4 0.4 0.4 0.05 3/execute at @e[tag=c9_plot] if score @e[tag=c9_main,limit=1] c9_t matches 1..90 run particle happy_villager ~ ~1.5 ~ 1.5 1.5 1.5 0.05 2/execute as @e[tag=c9_main,scores={c9_t=5}] at @s run fill ~-1 ~-1 ~-1 ~1 ~ ~1 mossy_stone_bricks/execute as @e[tag=c9_main,scores={c9_t=10}] at @s run setblock ~ ~ ~ water/execute as @e[tag=c9_main,scores={c9_t=15}] at @s run fill ~-1 ~1 ~-1 ~1 ~3 ~1 oak_fence outline/execute as @e[tag=c9_main,scores={c9_t=20}] at @s run fill ~-1 ~3 ~-1 ~1 ~3 ~1 oak_slab[type=bottom]/execute as @e[tag=c9_main,scores={c9_t=25}] at @s run fill ~-12 ~-1 ~-1 ~12 ~-1 ~1 cobblestone/execute as @e[tag=c9_main,scores={c9_t=30}] at @s run fill ~-1 ~-1 ~-12 ~1 ~-1 ~12 cobblestone/execute if score @e[tag=c9_main,limit=1] c9_t matches 40 at @e[tag=c9_house] run fill ~-2 ~ ~-2 ~2 ~ ~2 cobblestone/execute if score @e[tag=c9_main,limit=1] c9_t matches 55 at @e[tag=c9_house] run fill ~-2 ~1 ~-2 ~2 ~3 ~2 oak_planks hollow/execute if score @e[tag=c9_main,limit=1] c9_t matches 70 at @e[tag=c9_house] run fill ~-2 ~1 ~-2 ~2 ~3 ~2 stripped_oak_log outline/execute if score @e[tag=c9_main,limit=1] c9_t matches 85 at @e[tag=c9_house] run fill ~-3 ~4 ~-3 ~3 ~4 ~3 brickssetup #6 Summons invisible plot markers at the four corners around the well so every house can be built simultaneously using relative coordinates.loop #1 Advances the master construction timer <code>c9_t</code> on the central marker by 1 every tick.loop #9 At tick 25 and 30, lays down intersecting cobblestone roads across the grass plaza.loop #12 At tick 55, builds hollow oak plank walls on all four house plots at once, followed by timber framing and brick roofs on ticks 70 and 85.


Recorded on our own test server: 57 frames at about 9.5 fps. Our image check saw: A glowing sea lantern orb hovers with particles above a central wooden well surrounded by four generated brick-roofed cottages and intersecting cobblestone paths.
Commands, video and screenshots: tested and recorded by www.9minecraft.net © 9Minecraft. Sharing a video or screenshot? Please credit www.9minecraft.net.
To let players trigger the town generator by throwing a snowball or dropping an emerald, summon the c9_main and c9_house markers at the landing spot of a tagged item entity, then reset c9_t to 0 so the build sequence starts at that location.
/kill @e[tag=c9_gen]/scoreboard objectives remove c9_t/fill ~-14 ~-1 ~-14 ~14 ~-1 ~14 grass_block/fill ~-14 ~ ~-14 ~14 ~12 ~14 airYes! Just summon additional armor stands with the c9_house tag anywhere you want another cottage, and the loop will build on all of them at the same time.
Clear the blocks with the fill command from setup, then run /scoreboard players set @e[tag=c9_main] c9_t 0 to restart the construction timer.
▶Rapid Procedural Town SprouterSelf-building StructuresExpert24 cmds
▶Self-Building Stone LabyrinthSelf-building StructuresHard24 cmds
▶Mechanical Spider Silk Web SpinnerSelf-building StructuresHard24 cmds
▶Mythic World-Tree Yggdrasil BloomingSelf-building StructuresExpert20 cmds
▶Automated Dungeon BuilderSelf-building StructuresHard26 cmds
▶Automated Procedural Maze BuilderSelf-building StructuresHard24 cmds