Procedural Skyscraper Generator

Watch a flat grass plot transform into a glowing night city as an asphalt road grid lays down and builder drones extrude four tall glass skyscrapers.

Java EditionComplex Contraptions & CinematicsHard24 commandsTested on a real 26.2 & 26.3 server
Tall glass skyscrapers with white corner pillars flank a black road with yellow stripes in Minecraft. Download the GIF Video & GIF © www.9minecraft.net

Self-building StructuresTechnologyIndustrialBlackWhiteYellowBuilding ToolMap MakingCinematicBlock displaysSmooth animation (interpolation)Block building (fill/setblock/clone)21+ commands

Building a modern city block usually takes hours of placing concrete and glass by hand. This command creation turns a single flat plot into an automated construction show: black asphalt roads with yellow lane stripes roll out across the ground while four glowing builder drones rise into the sky, extruding multi-story skyscrapers layer by layer.

Each tower is built from white concrete corner pillars, two-tone cyan and light blue stained glass walls, and a bright sea lantern core that shines through the windows at night. Because every drone picks a random target height between 16 and 24 blocks, no two city skylines look quite the same.

1. Setup - type these once 10 commands

  1. /scoreboard objectives add c9_t dummy
  2. /scoreboard objectives add c9_h dummy
  3. /scoreboard objectives add c9_max dummy
  4. /summon marker ~ ~ ~ {Tags:["c9_gen","c9_root"]}
  5. /summon block_display ~-8 ~ ~-8 {block_state:{Name:"minecraft:sea_lantern"},Glowing:1b,glow_color_override:65535,brightness:{sky:15,block:15},transformation:{left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f],translation:[-0.75f,0f,-0.75f],scale:[1.5f,0.8f,1.5f]},interpolation_duration:4,teleport_duration:4,Tags:["c9_gen","c9_b"]}
  6. /summon block_display ~8 ~ ~-8 {block_state:{Name:"minecraft:shroomlight"},Glowing:1b,glow_color_override:16755200,brightness:{sky:15,block:15},transformation:{left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f],translation:[-0.75f,0f,-0.75f],scale:[1.5f,0.8f,1.5f]},interpolation_duration:4,teleport_duration:4,Tags:["c9_gen","c9_b"]}
  7. /summon block_display ~-8 ~ ~8 {block_state:{Name:"minecraft:ochre_froglight"},Glowing:1b,glow_color_override:16776960,brightness:{sky:15,block:15},transformation:{left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f],translation:[-0.75f,0f,-0.75f],scale:[1.5f,0.8f,1.5f]},interpolation_duration:4,teleport_duration:4,Tags:["c9_gen","c9_b"]}
  8. /summon block_display ~8 ~ ~8 {block_state:{Name:"minecraft:sea_lantern"},Glowing:1b,glow_color_override:5636095,brightness:{sky:15,block:15},transformation:{left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f],translation:[-0.75f,0f,-0.75f],scale:[1.5f,0.8f,1.5f]},interpolation_duration:4,teleport_duration:4,Tags:["c9_gen","c9_b"]}
  9. /execute as @e[tag=c9_b] store result score @s c9_max run random value 16..24
  10. /scoreboard players set @e[tag=c9_b] c9_h 0

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

  1. /scoreboard players add @e[tag=c9_root] c9_t 1
  2. /scoreboard players add @e[tag=c9_root] c9_h 1
  3. /execute as @e[tag=c9_root,scores={c9_h=4..}] run scoreboard players set @s c9_h 0
  4. /execute as @e[tag=c9_root,scores={c9_t=3}] at @s run fill ~-2 ~-1 ~-17 ~2 ~-1 ~17 black_concrete
  5. /execute as @e[tag=c9_root,scores={c9_t=6}] at @s run fill ~-17 ~-1 ~-2 ~17 ~-1 ~2 black_concrete
  6. /execute as @e[tag=c9_root,scores={c9_t=9}] at @s run fill ~-17 ~-1 ~ ~17 ~-1 ~ yellow_concrete replace black_concrete
  7. /execute as @e[tag=c9_root,scores={c9_t=9}] at @s run fill ~ ~-1 ~-17 ~ ~-1 ~17 yellow_concrete replace black_concrete
  8. /execute if entity @e[tag=c9_root,scores={c9_t=12..,c9_h=0}] as @e[tag=c9_b] at @s if score @s c9_h < @s c9_max run fill ~-4 ~ ~-4 ~4 ~ ~4 white_concrete
  9. /execute if entity @e[tag=c9_root,scores={c9_t=12..,c9_h=0}] as @e[tag=c9_b] at @s if score @s c9_h < @s c9_max run fill ~-4 ~ ~-3 ~4 ~ ~3 cyan_stained_glass replace white_concrete
  10. /execute if entity @e[tag=c9_root,scores={c9_t=12..,c9_h=0}] as @e[tag=c9_b] at @s if score @s c9_h < @s c9_max run fill ~-3 ~ ~-4 ~3 ~ ~4 light_blue_stained_glass replace white_concrete
  11. /execute if entity @e[tag=c9_root,scores={c9_t=12..,c9_h=0}] as @e[tag=c9_b] at @s if score @s c9_h < @s c9_max run fill ~-2 ~ ~-2 ~2 ~ ~2 sea_lantern
  12. /execute if entity @e[tag=c9_root,scores={c9_t=12..,c9_h=0}] as @e[tag=c9_b] at @s if score @s c9_h < @s c9_max run tp @s ~ ~1 ~
  13. /execute if entity @e[tag=c9_root,scores={c9_t=12..,c9_h=0}] as @e[tag=c9_b] at @s if score @s c9_h < @s c9_max run scoreboard players add @s c9_h 1
  14. /execute as @e[tag=c9_b] at @s if score @s c9_h < @s c9_max run particle dust{color:[0.1,0.95,1.0],scale:1.8} ~ ~0.4 ~ 2.5 0.3 2.5 0 10 force

How it works

Frames from the test run

Procedural Skyscraper Generator - frame 1Procedural Skyscraper Generator - frame 2Procedural Skyscraper Generator - frame 3

Recorded on our own test server: 50 frames at about 9.8 fps. Our image check saw: A night-time view down an intersecting black road with yellow lane stripes flanked by four tall glass skyscrapers with white concrete corner pillars and small glowing drone outlines.

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 35x35 area with at least 26 blocks of open air above it.
  2. Stand near the edge of the plot and place 14 repeating command blocks in a row, setting all of them to Always Active.
  3. Paste each command from the loop list into one of the repeating command blocks in order.
  4. Stand at the exact center of your flat plot and run all 10 setup commands in chat (or from a chain of impulse command blocks triggered at the center).
  5. Watch the asphalt road grid lay itself down and the four glowing drones extrude the skyscrapers automatically.
  6. To reset the plot later, run the remove commands from the center of the intersection.

Use it with real players

To generate a city block wherever you are standing, replace ~ ~ ~ in the setup commands with your own position by running them directly in chat, or bind them to an item trigger using execute at @p around a player tagged c9_builder.

Remove it again 6 commands

  1. /kill @e[tag=c9_gen]
  2. /scoreboard objectives remove c9_t
  3. /scoreboard objectives remove c9_h
  4. /scoreboard objectives remove c9_max
  5. /fill ~-17 ~ ~-17 ~17 ~25 ~17 air
  6. /fill ~-17 ~-1 ~-17 ~17 ~-1 ~17 grass_block

FAQ

Can I make the skyscrapers even taller?

Yes. Change 16..24 in the ninth setup command to a higher range such as 25..40 before running setup, as long as there is open sky above the plot.

Why do the drones use block_display instead of armor stands?

Using block_display entities lets us enable Glowing:1b with custom outline colors and smooth 4-tick teleport_duration interpolation so the drones glide upward cleanly.

Commands used

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

Similar creations

Join 9Minecraft News & Guides