Procedural Town Generator

Watch a glowing builder orb construct a lively village plaza with a well, cobblestone roads, timber cottages, roofs, and oak trees piece by piece.

Java EditionComplex Contraptions & CinematicsHard24 commandsTested on a real 26.2 & 26.3 server
A glowing builder orb hovers over a central well surrounded by four generated cottages and cobblestone roads. Download the GIF Video & GIF © www.9minecraft.net

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.

1. Setup - type these once 10 commands

  1. /scoreboard objectives add c9_t dummy
  2. /fill ~-14 ~-1 ~-14 ~14 ~-1 ~14 grass_block
  3. /fill ~-14 ~ ~-14 ~14 ~12 ~14 air
  4. /summon armor_stand ~ ~ ~ {Tags:["c9_gen","c9_main"],Invisible:1b,NoGravity:1b,Marker:1b}
  5. /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"}}
  6. /summon armor_stand ~-6 ~ ~-6 {Tags:["c9_gen","c9_plot","c9_house"],Invisible:1b,NoGravity:1b,Marker:1b}
  7. /summon armor_stand ~6 ~ ~-6 {Tags:["c9_gen","c9_plot","c9_house"],Invisible:1b,NoGravity:1b,Marker:1b}
  8. /summon armor_stand ~-6 ~ ~6 {Tags:["c9_gen","c9_plot","c9_house"],Invisible:1b,NoGravity:1b,Marker:1b}
  9. /summon armor_stand ~6 ~ ~6 {Tags:["c9_gen","c9_plot","c9_house"],Invisible:1b,NoGravity:1b,Marker:1b}
  10. /summon armor_stand ~-11 ~ ~-11 {Tags:["c9_gen","c9_plot","c9_tree"],Invisible:1b,NoGravity:1b,Marker:1b}

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

  1. /execute as @e[tag=c9_main] run scoreboard players add @s c9_t 1
  2. /execute as @e[tag=c9_orb] at @s run tp @s ~ ~ ~ ~12 ~
  3. /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
  4. /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
  5. /execute as @e[tag=c9_main,scores={c9_t=5}] at @s run fill ~-1 ~-1 ~-1 ~1 ~ ~1 mossy_stone_bricks
  6. /execute as @e[tag=c9_main,scores={c9_t=10}] at @s run setblock ~ ~ ~ water
  7. /execute as @e[tag=c9_main,scores={c9_t=15}] at @s run fill ~-1 ~1 ~-1 ~1 ~3 ~1 oak_fence outline
  8. /execute as @e[tag=c9_main,scores={c9_t=20}] at @s run fill ~-1 ~3 ~-1 ~1 ~3 ~1 oak_slab[type=bottom]
  9. /execute as @e[tag=c9_main,scores={c9_t=25}] at @s run fill ~-12 ~-1 ~-1 ~12 ~-1 ~1 cobblestone
  10. /execute as @e[tag=c9_main,scores={c9_t=30}] at @s run fill ~-1 ~-1 ~-12 ~1 ~-1 ~12 cobblestone
  11. /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
  12. /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
  13. /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
  14. /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 bricks

How it works

Frames from the test run

Procedural Town Generator - frame 1Procedural Town Generator - frame 2Procedural Town Generator - frame 3

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.

Build it in your world

  1. Create a flat clearing at least 30x30 blocks wide and stand at the center.
  2. Run each command from the Setup list in chat or a command block positioned at the plaza center.
  3. Place a row of 14 repeating command blocks set to Always Active.
  4. Paste one Loop command into each repeating command block.
  5. Watch the central well, crossroads, and four corner cottages construct themselves in under five seconds.

Use it with real players

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.

Remove it again 4 commands

  1. /kill @e[tag=c9_gen]
  2. /scoreboard objectives remove c9_t
  3. /fill ~-14 ~-1 ~-14 ~14 ~-1 ~14 grass_block
  4. /fill ~-14 ~ ~-14 ~14 ~12 ~14 air

FAQ

Can I add more houses to the town?

Yes! 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.

How do I replay the building animation?

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.

Commands used

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

Similar creations

Join 9Minecraft News & Guides