Procedural Terrain Assembler

Build an automated terrain generator using vanilla commands that scans a flat plot with glowing laser drones and builds layered hills in real time.

Java EditionComplex Contraptions & CinematicsHard24 commandsTested on a real 26.2 & 26.3 server
A glowing beacon device hovers over a dirt square, generating layered terrain topped with snow. Download the GIF Video & GIF © www.9minecraft.net

Self-building StructuresTechnologyNatureGreenWhiteCyanBuilding ToolMap MakingLearningBlock displaysArmor standsSummoned mobsBlock building (fill/setblock/clone)Rotation math21+ commands

The Procedural Terrain Assembler turns a flat square of barren coarse dirt into a rich, multi-layered landscape right before your eyes. At the center of the site, a glowing Terraform Core rotates inside an energy ring while three autonomous laser drones sweep across the ground, scanning and stacking blocks from bedrock to snowy peaks.

Each pass of a laser drone raises the terrain by one geological layer, transitioning smoothly through cobblestone, stone, dirt, grass, moss, and snow. Bright cyan laser beams and ominous energy particles highlight every construction strike as hills and valleys organically emerge from the ground.

1. Setup - type these once 10 commands

  1. /scoreboard objectives add c9_t dummy
  2. /scoreboard players set #tick c9_t 0
  3. /fill ~-11 ~-1 ~-11 ~11 ~-1 ~11 minecraft:coarse_dirt
  4. /fill ~-12 ~-1 ~-12 ~12 ~-1 ~12 minecraft:deepslate_bricks replace minecraft:grass_block
  5. /summon minecraft:block_display ~ ~11 ~ {Tags:["c9_sim","c9_core"],Glowing:1b,glow_color_override:65535,brightness:{sky:15,block:15},block_state:{Name:"minecraft:beacon"},transformation:{left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f],scale:[1.8f,1.8f,1.8f],translation:[-0.9f,-0.9f,-0.9f]}}
  6. /summon minecraft:block_display ~ ~11 ~ {Tags:["c9_sim","c9_ring"],Glowing:1b,glow_color_override:16755200,brightness:{sky:15,block:15},block_state:{Name:"minecraft:sea_lantern"},transformation:{left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f],scale:[3.2f,0.3f,3.2f],translation:[-1.6f,-0.15f,-1.6f]}}
  7. /summon minecraft:armor_stand ~-4 ~ ~-4 {Tags:["c9_sim","c9_builder","c9_b1"],Invisible:1b,NoGravity:1b,Marker:1b}
  8. /summon minecraft:armor_stand ~4 ~ ~-3 {Tags:["c9_sim","c9_builder","c9_b2"],Invisible:1b,NoGravity:1b,Marker:1b}
  9. /summon minecraft:armor_stand ~ ~ ~5 {Tags:["c9_sim","c9_builder","c9_b3"],Invisible:1b,NoGravity:1b,Marker:1b}
  10. /execute as @e[tag=c9_builder] at @s run summon minecraft:block_display ~ ~ ~ {Tags:["c9_sim","c9_beam"],Glowing:1b,glow_color_override:65535,brightness:{sky:15,block:15},block_state:{Name:"minecraft:cyan_stained_glass"},transformation:{left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f],scale:[0.45f,10.0f,0.45f],translation:[-0.225f,0f,-0.225f]}}

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

  1. /scoreboard players add #tick c9_t 1
  2. /execute as @e[tag=c9_core] at @s run tp @s ~ ~ ~ ~8 ~
  3. /execute as @e[tag=c9_ring] at @s run tp @s ~ ~ ~ ~-12 ~
  4. /particle minecraft:end_rod ~ ~11 ~ 1.4 0.3 1.4 0.03 3 force
  5. /spreadplayers ~ ~ 2 9 false @e[tag=c9_builder]
  6. /execute as @e[tag=c9_builder] at @s if block ~ ~-1 ~ minecraft:moss_block run fill ~-1 ~ ~-1 ~1 ~ ~1 minecraft:snow_block replace minecraft:air
  7. /execute as @e[tag=c9_builder] at @s if block ~ ~-1 ~ minecraft:grass_block run fill ~-1 ~ ~-1 ~1 ~ ~1 minecraft:moss_block replace minecraft:air
  8. /execute as @e[tag=c9_builder] at @s if block ~ ~-1 ~ minecraft:dirt run fill ~-1 ~ ~-1 ~1 ~ ~1 minecraft:grass_block replace minecraft:air
  9. /execute as @e[tag=c9_builder] at @s if block ~ ~-1 ~ minecraft:stone run fill ~-1 ~ ~-1 ~1 ~ ~1 minecraft:dirt replace minecraft:air
  10. /execute as @e[tag=c9_builder] at @s if block ~ ~-1 ~ minecraft:cobblestone run fill ~-1 ~ ~-1 ~1 ~ ~1 minecraft:stone replace minecraft:air
  11. /execute as @e[tag=c9_builder] at @s if block ~ ~-1 ~ minecraft:coarse_dirt run fill ~-1 ~ ~-1 ~1 ~ ~1 minecraft:cobblestone replace minecraft:air
  12. /execute as @e[tag=c9_builder] at @s run tp @e[tag=c9_beam,limit=1,sort=nearest] ~ ~ ~
  13. /execute at @e[tag=c9_builder] run particle minecraft:dust{color:[0.1,0.95,1.0],scale:1.8} ~ ~0.5 ~ 0.6 0.4 0.6 0 10 force
  14. /execute at @e[tag=c9_builder] run particle minecraft:trial_spawner_detection_ominous ~ ~ ~ 0.5 1.5 0.5 0.02 4 force

How it works

Frames from the test run

Procedural Terrain Assembler - frame 1Procedural Terrain Assembler - frame 2Procedural Terrain Assembler - frame 3

Recorded on our own test server: 54 frames at about 9.0 fps. Our image check saw: A floating beacon device hovers above a square plot of coarse dirt while layers of stone, dirt, grass, and snow blocks appear beneath it.

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 or clear a flat area of at least 30x30 blocks and stand at the exact center.
  2. Run the 10 setup commands in order in your chat or a command block to prepare the coarse dirt canvas, deepslate border, floating core, and builder drones.
  3. Place a line of 14 command blocks away from the center build zone (or underground beneath the stage).
  4. Set the first command block to Repeating and Always Active, and chain the remaining 13 as Chain, Unconditional, and Always Active.
  5. Paste each loop command into the 14 command blocks in order; wrap them with <code>execute positioned X Y Z run ...</code> using your stage center coordinates so <code>~ ~ ~</code> targets the center.
  6. Watch the three cyan laser beams sweep across the pit and assemble multi-layered hills up to snow-capped peaks.
  7. When finished, deactivate the repeating command block and run the remove commands to clean up all entities and restore the flat grass platform.

Use it with real players

To let a player manually sculpt terrain with a Terraform Designator instead of automatic random scanning, remove loop command 5 (/spreadplayers) and replace it with /execute as @p at @s anchored eyes run tp @e[tag=c9_builder,limit=1] ^ ^ ^8 so the builder laser follows wherever you look.

Remove it again 4 commands

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

FAQ

Why are the layer fill commands ordered from moss down to coarse dirt?

Because all loop commands run in the same tick from top to bottom. Checking the highest layer first prevents a single drone from stacking every layer from cobblestone all the way to snow in a single tick.

Can I increase the size of the generated terrain area?

Yes! Increase the coordinates in setup commands 3 and 4 for a larger foundation, and raise the maximum range value (currently 9) in the /spreadplayers loop command to match your new radius.

Commands used

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

Similar creations

Join 9Minecraft News & Guides