Watch an empty plain transform into a glowing night-time metropolis as autonomous road pavers and laser cranes build streets and skyscrapers in seconds.
Self-building StructuresTechnologyIndustrialBlackYellowCyanBuilding ToolMap MakingCinematicBlock displaysBlock building (fill/setblock/clone)Rotation math21+ commands
Building a full city by hand takes days, but this command creation turns an empty grass plain into a thriving night-time skyline in seconds. Starting from a glowing central roundabout, four autonomous road pavers streak outward to lay down dark deepslate asphalt, smooth stone sidewalks, and ochre froglight streetlamps.
As the roads expand, eight glowing construction platforms deploy into the city blocks and rise upward. Each crane extrudes a multi-story skyscraper made of cyan and blue stained glass around a bright sea lantern core, complete with rooftop beacons and particle sparks.
/scoreboard objectives add c9_city dummy/scoreboard objectives add c9_step dummy/scoreboard players set #tick c9_city 0/fill ~-3 ~-1 ~-3 ~3 ~-1 ~3 smooth_stone/fill ~-1 ~-1 ~-1 ~1 ~-1 ~1 deepslate_tiles/fill ~ ~ ~ ~ ~5 ~ polished_basalt/setblock ~ ~6 ~ sea_lantern/summon block_display ~2 ~ ~ {Tags:["c9_city","c9_road"],Rotation:[-90f,0f],Glowing:1b,glow_color_override:16755200,block_state:{Name:"minecraft:ochre_froglight"},transformation:{left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f],scale:[1.2f,0.6f,2.4f],translation:[-0.6f,0f,-1.2f]}}/summon block_display ~-2 ~ ~ {Tags:["c9_city","c9_road"],Rotation:[90f,0f],Glowing:1b,glow_color_override:16755200,block_state:{Name:"minecraft:ochre_froglight"},transformation:{left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f],scale:[1.2f,0.6f,2.4f],translation:[-0.6f,0f,-1.2f]}}/summon block_display ~ ~ ~2 {Tags:["c9_city","c9_road"],Rotation:[0f,0f],Glowing:1b,glow_color_override:16755200,block_state:{Name:"minecraft:ochre_froglight"},transformation:{left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f],scale:[2.4f,0.6f,1.2f],translation:[-1.2f,0f,-0.6f]}}/execute if score #tick c9_city matches 0 run summon block_display ~ ~ ~-2 {Tags:["c9_city","c9_road"],Rotation:[180f,0f],Glowing:1b,glow_color_override:16755200,block_state:{Name:"minecraft:ochre_froglight"},transformation:{left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f],scale:[2.4f,0.6f,1.2f],translation:[-1.2f,0f,-0.6f]}}/scoreboard players add #tick c9_city 1/scoreboard players operation #mod c9_city = #tick c9_city/scoreboard players set #three c9_city 3/scoreboard players operation #mod c9_city %= #three c9_city/execute if score #tick c9_city matches 1..42 if score #mod c9_city matches 0 as @e[tag=c9_road] at @s run scoreboard players add @s c9_step 1/execute if score #tick c9_city matches 1..42 if score #mod c9_city matches 0 as @e[tag=c9_road] at @s run fill ^-2 ^-1 ^ ^2 ^-1 ^ smooth_stone/execute if score #tick c9_city matches 1..42 if score #mod c9_city matches 0 as @e[tag=c9_road] at @s run fill ^-1 ^-1 ^ ^1 ^-1 ^ deepslate_tiles/execute if score #tick c9_city matches 1..42 if score #mod c9_city matches 0 as @e[tag=c9_road,scores={c9_step=4}] at @s run summon block_display ^6 ^ ^ {Tags:["c9_city","c9_bld","c9_tall"],Glowing:1b,glow_color_override:65535,block_state:{Name:"minecraft:sea_lantern"},transformation:{left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f],scale:[5.2f,0.4f,5.2f],translation:[-2.6f,0f,-2.6f]}}/execute if score #tick c9_city matches 1..42 if score #mod c9_city matches 0 as @e[tag=c9_road,scores={c9_step=10}] at @s run summon block_display ^-6 ^ ^ {Tags:["c9_city","c9_bld","c9_mid"],Glowing:1b,glow_color_override:16755200,block_state:{Name:"minecraft:shroomlight"},transformation:{left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f],scale:[5.2f,0.4f,5.2f],translation:[-2.6f,0f,-2.6f]}}/execute if score #tick c9_city matches 1..42 if score #mod c9_city matches 0 as @e[tag=c9_road,scores={c9_step=7}] at @s run setblock ^2 ^ ^ ochre_froglight/execute if score #tick c9_city matches 1..42 if score #mod c9_city matches 0 as @e[tag=c9_road] at @s run tp @s ^ ^ ^1/execute if score #tick c9_city matches 12..66 if score #mod c9_city matches 0 as @e[tag=c9_bld] at @s run fill ~-2 ~ ~-2 ~2 ~ ~2 cyan_stained_glass/execute if score #tick c9_city matches 12..66 if score #mod c9_city matches 0 as @e[tag=c9_bld] at @s run fill ~-1 ~ ~-1 ~1 ~ ~1 sea_lantern/execute if score #tick c9_city matches 12..66 if score #mod c9_city matches 0 as @e[tag=c9_bld] at @s run tp @s ~ ~1 ~/execute if score #tick c9_city matches 1..70 as @e[tag=c9_city] at @s run particle end_rod ~ ~0.4 ~ 1.2 0.2 1.2 0.03 2setup #8 Summons the eastern glowing road paver using a <code>block_display</code> entity rotated to face outward along the X axis.loop #5 Uses the modulo operator <code>%=</code> against 3 so that construction steps happen smoothly every 3 ticks (about 7 blocks per second).loop #7 Uses local coordinates <code>^-2 ^-1 ^ ^2 ^-1 ^</code> relative to each road paver's facing direction to lay down a 5-block wide smooth stone sidewalk.loop #9 When a road paver reaches step 4, it deploys a cyan glowing skyscraper crane 6 blocks to its left using <code>^6 ^ ^</code>.loop #13 As each building crane rises, it fills a 5x5 outer shell of <code>cyan_stained_glass</code> around a glowing 3x3 <code>sea_lantern</code> core.


Recorded on our own test server: 48 frames at about 9.5 fps. Our image check saw: A high-angle view of a generated Minecraft city intersection with deepslate roads, smooth stone sidewalks, froglight lamps, and tall sea lantern towers with glowing construction markers.
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 the city generation by throwing a flare item, summon the four road pavers at @e[type=item,nbt={Item:{id:"minecraft:sea_lantern"}},OnGround:1b] instead of the fixed stage center, then kill the dropped item and reset #tick c9_city to 0.
/kill @e[tag=c9_city]/fill ~-18 ~ ~-18 ~18 ~24 ~18 air/fill ~-18 ~-1 ~-18 ~18 ~-1 ~18 grass_block/scoreboard objectives remove c9_city/scoreboard objectives remove c9_stepMinecraft score matches do not support pipe-separated numbers like 4|8|12. This creation uses a scoreboard modulo operation (%= 3) to trigger steps reliably every 3 ticks.
Yes! Increase the upper tick limit on the three building loop commands from 12..66 to 12..96 to add ten more floors to every tower.
▶Mechanical Spider Silk Web SpinnerSelf-building StructuresHard24 cmds
▶Instant Metropolis GeneratorSelf-building StructuresHard24 cmds
▶Procedural Infinite Corridor GeneratorSelf-building StructuresHard24 cmds
▶Procedural Terrain PrinterSelf-building StructuresExpert24 cmds
▶Procedural Cyberpunk City BuilderSelf-building StructuresExpert24 cmds
▶Procedural Skyscraper GeneratorSelf-building StructuresHard24 cmds