Procedural Terrain Printer

Build an automated 3D terrain printer in vanilla Minecraft that sweeps across a glass grid to generate hills, lakes, and peaks using only commands.

Java EditionComplex Contraptions & CinematicsExpert24 commandsTested on a real 26.2 & 26.3 server
Glowing cyan printer heads move across an iron bar gantry grid over generated terrain. Download the GIF Video & GIF © www.9minecraft.net

Self-building StructuresTechnologyIndustrialNatureCyanGreenWhiteBuilding ToolLearningMap MakingItem displaysSummoned mobsBlock building (fill/setblock/clone)21+ commands

The Procedural Terrain Printer turns a flat frame into a living 3D landscape generator. Overhead gantry rails carry six glowing laser heads across a 31x31 grid, dropping pillars of stone and terrain while cyan laser sparks and smoke rise from the build zone.

Using pure scoreboard math, each print head calculates a rolling wave pattern as it moves, painting deep water pools, sandy shores, grassy hills, and snowy mountain peaks right before your eyes.

1. Setup - type these once 10 commands

  1. /scoreboard objectives add c9_t dummy
  2. /scoreboard players set #c31 c9_t 31
  3. /scoreboard players set #c7 c9_t 7
  4. /scoreboard players set #c3 c9_t 3
  5. /fill ~-16 ~ ~-16 ~16 ~ ~16 minecraft:polished_deepslate
  6. /fill ~-15 ~ ~-15 ~15 ~ ~15 minecraft:cyan_stained_glass
  7. /fill ~-16 ~11 ~-16 ~16 ~11 ~16 minecraft:iron_bars outline
  8. /summon minecraft:item_display ~-15 ~10 ~-15 {Tags:["c9_all","c9_p"],Glowing:1b,glow_color_override:65535,item:{id:"minecraft:beacon"},transformation:{left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f],translation:[0f,0f,0f],scale:[0.7f,1.4f,0.7f]}}
  9. /summon minecraft:item_display ~-9 ~10 ~-9 {Tags:["c9_all","c9_p"],Glowing:1b,glow_color_override:65535,item:{id:"minecraft:beacon"},transformation:{left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f],translation:[0f,0f,0f],scale:[0.7f,1.4f,0.7f]}}
  10. /summon minecraft:item_display ~-3 ~10 ~-3 {Tags:["c9_all","c9_p"],Glowing:1b,glow_color_override:65535,item:{id:"minecraft:beacon"},transformation:{left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f],translation:[0f,0f,0f],scale:[0.7f,1.4f,0.7f]}}

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

  1. /scoreboard players add #tick c9_t 1
  2. /execute if score #tick c9_t matches 1..4 positioned ~3 ~10 ~-12 run summon minecraft:item_display ~ ~ ~ {Tags:["c9_all","c9_p"],Glowing:1b,glow_color_override:65535,item:{id:"minecraft:beacon"},transformation:{left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f],translation:[0f,0f,0f],scale:[0.7f,1.4f,0.7f]}}
  3. /execute as @e[tag=c9_p] at @s run tp @s ~1 ~ ~
  4. /execute as @e[tag=c9_p] at @s if block ~ ~-10 ~ minecraft:polished_deepslate run tp @s ~-31 ~ ~1
  5. /execute as @e[tag=c9_p] at @s if block ~ ~-10 ~ minecraft:polished_deepslate run tp @s ~ ~ ~-31
  6. /execute as @e[tag=c9_p] at @s run fill ~ ~-9 ~ ~ ~-1 ~ minecraft:air
  7. /execute as @e[tag=c9_p] at @s store result score @s c9_t run data get entity @s Pos[0] 1
  8. /execute as @e[tag=c9_p] at @s store result score #z c9_t run data get entity @s Pos[2] 1
  9. /execute as @e[tag=c9_p] run scoreboard players operation @s c9_t *= #z c9_t
  10. /execute as @e[tag=c9_p] run scoreboard players operation @s c9_t %= #c7 c9_t
  11. /execute as @e[tag=c9_p] if score @s c9_t matches ..-1 run scoreboard players operation @s c9_t += #c7 c9_t
  12. /execute as @e[tag=c9_p,scores={c9_t=0..1}] at @s run fill ~ ~-9 ~ ~ ~-8 ~ minecraft:light_blue_stained_glass
  13. /execute as @e[tag=c9_p,scores={c9_t=2..4}] at @s run fill ~ ~-9 ~ ~ ~-6 ~ minecraft:moss_block
  14. /execute as @e[tag=c9_p,scores={c9_t=5..6}] at @s run fill ~ ~-9 ~ ~ ~-4 ~ minecraft:snow_block

How it works

Frames from the test run

Procedural Terrain Printer - frame 1Procedural Terrain Printer - frame 2Procedural Terrain Printer - frame 3

Recorded on our own test server: 58 frames at about 9.6 fps. Our image check saw: A large grid of iron bars sits over a terrain build zone, with glowing cyan-outlined blocks moving across the top.

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 35x35 blocks wide and stand in the exact center.
  2. Run each of the 10 setup commands in chat to build the printer frame, glass build plate, and initial laser heads.
  3. Place 14 repeating command blocks (or one repeating block feeding 13 chain blocks) nearby.
  4. Paste the loop commands in order from 1 to 14 and set every block to Always Active.
  5. Watch the glowing beacon nozzles scan across the grid and print out 3D terrain columns.

Use it with real players

To manually steer a print head yourself, tag yourself with /tag @s add c9_p and remove the first five movement commands from the loop so the terrain generates wherever you fly inside the frame.

Remove it again 3 commands

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

FAQ

Can I change the size of the printed terrain?

Yes. Adjust the deepslate border coordinates in the setup fill commands and change the wrap distance (-31) in loop commands 4 and 5 to match your new inner width.

How do I change the terrain blocks?

Edit the last three loop commands and replace light_blue_stained_glass, moss_block, and snow_block with any blocks you want for low, medium, and high elevations.

Commands used

/data/execute/fill/scoreboard/summon/tp

Similar creations

Join 9Minecraft News & Guides