Self-Building Procedural Metropolis

Watch a glowing neon metropolis build itself from an empty grid as randomized cyan and magenta skyscrapers erupt skyward beneath a hovering builder drone.

Java EditionComplex Contraptions & CinematicsHard22 commandsTested on a real 26.2 & 26.3 server
Glass skyscrapers with glowing sea lantern cores stand on a dark Minecraft platform beneath a floating drone. Download the GIF Video & GIF © www.9minecraft.net

Self-building StructuresTechnologyCyanPinkBlueBuilding ToolCinematicDecorationBlock displaysSmooth animation (interpolation)Block building (fill/setblock/clone)21+ commands

This command creation turns an empty flat platform into a glowing neon city skyline in just a few seconds. Roads lay down across the ground, plot markers scatter at random, and skyscrapers of varying heights stack upward floor by floor with illuminated cores and spires.

A glowing sea lantern drone glides from site to site as each tower rises, surrounded by cyan construction particles. No two runs generate the exact same skyline.

1. Setup - type these once 8 commands

  1. /scoreboard objectives add c9_t dummy
  2. /scoreboard objectives add c9_h dummy
  3. /scoreboard objectives add c9_s dummy
  4. /summon marker ~ ~ ~ {Tags:["c9_ctrl"]}
  5. /fill ~-17 ~-1 ~-17 ~17 ~-1 ~17 minecraft:black_concrete
  6. /fill ~-17 ~-1 ~-1 ~17 ~-1 ~1 minecraft:gray_concrete
  7. /fill ~-1 ~-1 ~-17 ~1 ~-1 ~17 minecraft:gray_concrete
  8. /summon block_display ~ ~4 ~ {Tags:["c9_drone"],Glowing:1b,glow_color_override:65535,interpolation_duration:4,teleport_duration:4,block_state:{Name:"minecraft:sea_lantern"},transformation:{left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f],translation:[-0.4f,-0.4f,-0.4f],scale:[0.8f,0.8f,0.8f]}}

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

  1. /execute as @e[tag=c9_ctrl] run scoreboard players add @s c9_t 1
  2. /execute if entity @e[tag=c9_ctrl,scores={c9_t=1..14}] run summon marker ~ ~ ~ {Tags:["c9_plot"]}
  3. /execute if entity @e[tag=c9_ctrl,scores={c9_t=15}] run spreadplayers ~ ~ 5 14 false @e[tag=c9_plot]
  4. /execute as @e[tag=c9_plot] unless score @s c9_s matches -2.. store result score @s c9_s run random value 16..85
  5. /scoreboard players remove @e[tag=c9_plot,scores={c9_s=1..}] c9_s 1
  6. /execute as @e[tag=c9_plot,scores={c9_s=0}] store result score @s c9_h run random value 10..23
  7. /execute as @e[tag=c9_plot,scores={c9_s=0}] store result score @s c9_s run random value -2..-1
  8. /execute as @e[tag=c9_plot,scores={c9_s=-1,c9_h=4..}] at @s run fill ~-1 ~ ~-1 ~1 ~ ~1 minecraft:cyan_stained_glass
  9. /execute as @e[tag=c9_plot,scores={c9_s=-2,c9_h=4..}] at @s run fill ~-1 ~ ~-1 ~1 ~ ~1 minecraft:magenta_stained_glass
  10. /execute as @e[tag=c9_plot,scores={c9_s=..-1,c9_h=1..}] at @s run setblock ~ ~ ~ minecraft:sea_lantern
  11. /execute as @e[tag=c9_plot,scores={c9_s=..-1,c9_h=1..}] at @s run particle minecraft:dust{color:[0.1,0.9,1.0],scale:1.5} ~ ~0.5 ~ 1.2 0.3 1.2 0 6
  12. /execute as @e[tag=c9_plot,scores={c9_s=..-1,c9_h=1..}] at @s run tp @s ~ ~1 ~
  13. /scoreboard players remove @e[tag=c9_plot,scores={c9_s=..-1,c9_h=1..}] c9_h 1
  14. /execute as @e[tag=c9_drone] at @s at @e[tag=c9_plot,scores={c9_s=..-1,c9_h=1..},limit=1,sort=nearest] run tp @s ~ ~3 ~

How it works

Frames from the test run

Self-Building Procedural Metropolis - frame 1Self-Building Procedural Metropolis - frame 2Self-Building Procedural Metropolis - frame 3

Recorded on our own test server: 49 frames at about 8.1 fps. Our image check saw: Three identical frames show a dark flat Minecraft platform with intersecting gray roads, glowing purple markers, magenta and blue stained-glass towers with sea lantern cores and spires, cyan particles, and a glowing sea lantern drone hovering above one tower.

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. Find a flat area at least 35x35 blocks wide and stand in the center.
  2. Run all 8 setup commands once in chat (or in a chain of impulse command blocks) to create the scoreboards, roads, controller, and drone.
  3. Place 14 repeating command blocks in a row, set all of them to Always Active, and paste one loop command into each block in order.
  4. Step back and watch the 14 plot markers scatter and stack randomized skyscrapers over the next five seconds.
  5. To generate a brand-new layout, run the remove commands, then run the setup commands again.

Remove it again 8 commands

  1. /kill @e[tag=c9_ctrl]
  2. /kill @e[tag=c9_plot]
  3. /kill @e[tag=c9_drone]
  4. /scoreboard objectives remove c9_t
  5. /scoreboard objectives remove c9_h
  6. /scoreboard objectives remove c9_s
  7. /fill ~-17 ~ ~-17 ~17 ~25 ~17 minecraft:air
  8. /fill ~-17 ~-1 ~-17 ~17 ~-1 ~17 minecraft:grass_block

FAQ

Can I change the skyscraper colors or make them taller?

Yes. Swap <code>cyan_stained_glass</code> and <code>magenta_stained_glass</code> in loop commands 8 and 9 for any stained glass or concrete, and adjust <code>10..23</code> in loop command 6 to change the height range.

Why do the buildings start rising at different times?

Each plot marker rolls a random countdown between 16 and 85 ticks on <code>c9_s</code>, so the towers stagger their start times across roughly four seconds instead of popping up all at once.

Commands used

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

Similar creations

Join 9Minecraft News & Guides