Watch little forest workers scurry across a field, planting glowing saplings that rapidly burst into a colourful forest with zero data packs.
Custom MobsNatureCuteGreenOrangeYellowBuilding ToolDecorationItem displaysSummoned mobsBlock building (fill/setblock/clone)Rotation math13-20 commands
The Automated Tree Planter brings an entire self-planting woodland to life using pure vanilla commands. Little glowing forest workers scurry across the open grass, dropping magical saplings behind them as they roam.
Within seconds of being planted, each sapling swells with green particles and bursts upward into a full tree complete with oak trunks, lush leaf canopies, and glowing shroomlights. When the field fills up, the forest resets itself in a cloud of smoke so the planting cycle can run forever.
/scoreboard objectives add c9_t dummy/summon marker ~ ~ ~ {Tags:["c9_e","c9_ctrl"]}/summon rabbit ~4 ~ ~4 {Tags:["c9_e","c9_bot"],CustomName:{"text":"Sprout","color":"green"},Glowing:1b,Invulnerable:1b}/summon rabbit ~-4 ~ ~4 {Tags:["c9_e","c9_bot"],CustomName:{"text":"Bramble","color":"gold"},Glowing:1b,Invulnerable:1b}/summon rabbit ~4 ~ ~-4 {Tags:["c9_e","c9_bot"],CustomName:{"text":"Moss","color":"aqua"},Glowing:1b,Invulnerable:1b}/summon rabbit ~-4 ~ ~-4 {Tags:["c9_e","c9_bot"],CustomName:{"text":"Fern","color":"light_purple"},Glowing:1b,Invulnerable:1b}/scoreboard players add @e[tag=c9_e] c9_t 1/execute as @e[tag=c9_bot] at @s run particle happy_villager ~ ~0.4 ~ 0.2 0.2 0.2 0 1/execute as @e[tag=c9_bot] at @s unless block ~ ~-1 ~ grass_block run tp @s ~ ~ ~/execute if score @e[tag=c9_ctrl,limit=1] c9_t matches 35.. run spreadplayers ~ ~ 3 11 false @e[tag=c9_bot]/execute if score @e[tag=c9_ctrl,limit=1] c9_t matches 35.. at @e[tag=c9_bot] if block ~ ~ ~ air if block ~ ~-1 ~ grass_block run summon item_display ~ ~0.5 ~ {Tags:["c9_e","c9_seed"],Glowing:1b,item:{id:"minecraft:cherry_sapling",count:1}}/execute if score @e[tag=c9_ctrl,limit=1] c9_t matches 35.. run scoreboard players set @e[tag=c9_ctrl] c9_t 0/execute at @e[tag=c9_seed,scores={c9_t=1}] run setblock ~ ~ ~ oak_sapling/execute at @e[tag=c9_seed] run particle composter ~ ~0.3 ~ 0.3 0.3 0.3 0 2/execute at @e[tag=c9_seed,scores={c9_t=40}] run fill ~-1 ~3 ~-1 ~1 ~5 ~1 azalea_leaves[persistent=true] replace air/execute at @e[tag=c9_seed,scores={c9_t=40}] run fill ~ ~ ~ ~ ~3 ~ oak_log/execute at @e[tag=c9_seed,scores={c9_t=40}] run setblock ~ ~4 ~ shroomlight/execute at @e[tag=c9_seed,scores={c9_t=40}] run particle totem_of_undying ~ ~2 ~ 0.8 1.5 0.8 0.15 35/execute at @e[tag=c9_seed,scores={c9_t=180}] run fill ~-1 ~ ~-1 ~1 ~5 ~1 air/kill @e[tag=c9_seed,scores={c9_t=180..}]setup #3 Summons the first glowing rabbit worker tagged with <code>c9_bot</code> so the loop can track it and plant trees at its feet.loop #4 Every 35 ticks, <code>/spreadplayers</code> moves the rabbit workers to new spots within 11 blocks of the stage centre so they cover the whole field.loop #5 Summons a glowing cherry sapling display entity tagged <code>c9_seed</code> wherever a worker lands on bare grass.loop #9 When a sapling reaches 40 ticks (2 seconds) of age, it builds a 3x3 canopy of persistent azalea leaves, followed by an oak trunk and a glowing shroomlight core.loop #13 At 180 ticks (9 seconds), the tree clears itself back to air and removes its marker so the workers can keep planting fresh trees endlessly without lagging the world.


Recorded on our own test server: 60 frames at about 9.8 fps. Our image check saw: Small glowing mobs with green particles roam a grassy area, leaving behind growing oak trees with blocky leaf canopies containing shroomlights.
Commands, video and screenshots: tested and recorded by www.9minecraft.net © 9Minecraft. Sharing a video or screenshot? Please credit www.9minecraft.net.
If you want trees to sprout behind real players as they walk instead of the rabbit workers, replace @e[tag=c9_bot] in the пятый loop command with @a and skip the /spreadplayers command.
/fill ~-15 ~ ~-15 ~15 ~8 ~15 air replace azalea_leaves/fill ~-15 ~ ~-15 ~15 ~8 ~15 air replace oak_log/fill ~-15 ~ ~-15 ~15 ~8 ~15 air replace shroomlight/fill ~-15 ~ ~-15 ~15 ~8 ~15 air replace oak_sapling/kill @e[tag=c9_e]/scoreboard objectives remove c9_tAdding persistent=true stops Minecraft from decaying the leaves if another tree overlaps or gets cleared nearby.
Yes! Simply remove the second-to-last loop command that fills the tree area with air at score 180, and your forest will stay forever.
/execute/fill/kill/particle/scoreboard/setblock/spreadplayers/summon/tp
▶Prismatic Butterfly Tornado SwarmCustom MobsMedium21 cmds
▶Inside the Beehive DioramaCustom MobsHard24 cmds
▶Wall-Climbing Seeker PigsCustom MobsMedium24 cmds
▶Botanical Lane DefenseCustom MobsMedium24 cmds
▶Color-Shifting Chameleon Tongue StrikeCustom MobsHard24 cmds
▶Nine-Tailed Kitsune Spirit Fox ShowcaseCustom MobsMedium26 cmds