Turn a single oak sapling into an animated giant custom tree with spreading surface roots, glowing builder probes, and flowering leaves.
Self-building StructuresNatureMysticGreenPinkOrangeBuilding ToolDecorationMap MakingBlock displaysBlock building (fill/setblock/clone)Rotation math21+ commands
Planting a sapling and waiting for bone meal is fine, but watching a giant tree construct itself block by block is much more rewarding. This command creation turns an ordinary oak sapling into an animated, procedural tree right before your eyes.
Once triggered, glowing builder guides shoot upward and outward from the sapling, carving rooted dirt trenches into the grass, raising a thick swirling oak trunk, and extending curved branches that bloom with flowering azalea leaves and falling petals.
/scoreboard objectives add c9_tick dummy/setblock ~ ~ ~ oak_sapling/summon marker ~ ~ ~ {Tags:["c9_ent","c9_ctrl"]}/scoreboard players set @e[tag=c9_ctrl] c9_tick 0/summon block_display ~-0.5 ~ ~-0.5 {Tags:["c9_ent","c9_trunk"],Glowing:1b,glow_color_override:65280,block_state:{Name:"minecraft:oak_wood"}}/summon block_display ~-0.5 ~ ~-0.5 {Tags:["c9_ent","c9_root"],Rotation:[0f,6f],Glowing:1b,glow_color_override:16755200,block_state:{Name:"minecraft:rooted_dirt"}}/summon block_display ~-0.5 ~ ~-0.5 {Tags:["c9_ent","c9_root"],Rotation:[90f,6f],Glowing:1b,glow_color_override:16755200,block_state:{Name:"minecraft:rooted_dirt"}}/summon block_display ~-0.5 ~ ~-0.5 {Tags:["c9_ent","c9_root"],Rotation:[180f,6f],Glowing:1b,glow_color_override:16755200,block_state:{Name:"minecraft:rooted_dirt"}}/summon block_display ~-0.5 ~ ~-0.5 {Tags:["c9_ent","c9_root"],Rotation:[270f,6f],Glowing:1b,glow_color_override:16755200,block_state:{Name:"minecraft:rooted_dirt"}}/execute as @e[tag=c9_ctrl] run scoreboard players add @s c9_tick 1/execute if entity @e[tag=c9_ctrl,scores={c9_tick=1..25}] run particle happy_villager ~ ~1 ~ 0.8 0.8 0.8 0 12 force/execute if entity @e[tag=c9_ctrl,scores={c9_tick=15..65}] as @e[tag=c9_root] at @s run tp @s ^ ^ ^0.18 ~3.5 ~/execute if entity @e[tag=c9_ctrl,scores={c9_tick=15..65}] at @e[tag=c9_root] run fill ~-1 ~-1 ~-1 ~1 ~ ~1 rooted_dirt replace grass_block/execute if entity @e[tag=c9_ctrl,scores={c9_tick=15..55}] at @e[tag=c9_root] run setblock ~ ~ ~ oak_wood/execute if entity @e[tag=c9_ctrl,scores={c9_tick=15..85}] as @e[tag=c9_trunk] at @s run tp @s ~ ~0.16 ~ ~18 ~/execute if entity @e[tag=c9_ctrl,scores={c9_tick=15..85}] at @e[tag=c9_trunk] run fill ~-1 ~ ~-1 ~1 ~ ~1 oak_wood/execute if entity @e[tag=c9_ctrl,scores={c9_tick=15..85}] at @e[tag=c9_trunk] run particle happy_villager ~ ~1 ~ 1.5 0.5 1.5 0 8 force/execute if entity @e[tag=c9_ctrl,scores={c9_tick=45..85}] at @e[tag=c9_trunk] run summon block_display ~ ~ ~ {Tags:["c9_ent","c9_branch"],Glowing:1b,glow_color_override:65280,block_state:{Name:"minecraft:azalea_leaves"}}/execute if entity @e[tag=c9_ctrl,scores={c9_tick=45..85}] at @e[tag=c9_trunk] as @e[tag=c9_branch,tag=!c9_aim] run tp @s ~ ~ ~ ~67.5 -22/execute if entity @e[tag=c9_ctrl,scores={c9_tick=45..85}] as @e[tag=c9_branch,tag=!c9_aim] run tag @s add c9_aim/execute if entity @e[tag=c9_ctrl,scores={c9_tick=46..115}] as @e[tag=c9_branch] at @s run tp @s ^ ^ ^0.22 ~4 ~0.5/execute if entity @e[tag=c9_ctrl,scores={c9_tick=46..108}] at @e[tag=c9_branch] run setblock ~ ~ ~ oak_wood/execute if entity @e[tag=c9_ctrl,scores={c9_tick=75..118}] at @e[tag=c9_branch] run fill ~-2 ~ ~-2 ~2 ~1 ~2 flowering_azalea_leaves[persistent=true] replace airsetup #5 Summons a glowing green <code>block_display</code> entity at the sapling that acts as the vertical trunk builder and spins as it climbs.loop #3 Moves the four orange root builders outward along the ground using local coordinates (<code>^ ^ ^0.18</code>) while turning them slightly each tick so the roots curve naturally.loop #4 Replaces grass blocks around each root builder with <code>rooted_dirt</code> while placing oak wood along the core path to build sprawling surface roots.loop #9 Between ticks 45 and 85, the climbing trunk spawns glowing branch builders that inherit the trunk's current rotation, sending branches out in a spiral pattern.loop #12 Moves every branch builder forward and slightly downward each tick (<code>~4 ~0.5</code>), creating realistic arched branches before filling their tips with persistent flowering azalea leaves.


Recorded on our own test server: 52 frames at about 8.6 fps. Our image check saw: A large tree with flowering azalea leaves, dirt roots, and glowing green and orange builder guides constructing it.
Commands, video and screenshots: tested and recorded by www.9minecraft.net © 9Minecraft. Sharing a video or screenshot? Please credit www.9minecraft.net.
To trigger a procedural tree anywhere you drop a bone meal near an oak sapling, summon the setup entities at @e[type=item,nbt={Item:{id:"minecraft:bone_meal"}}] whenever a sapling is detected nearby with execute at @e[type=item] if block ~ ~ ~ oak_sapling, then kill the bone meal item.
/kill @e[tag=c9_ent]/scoreboard objectives remove c9_tick/fill ~-12 ~ ~-12 ~12 ~22 ~12 air/fill ~-12 ~-1 ~-12 ~12 ~-1 ~12 grass_blockNo. The leaf command uses the block state [persistent=true], which tells Minecraft to keep the leaves permanently even if they are far from wood blocks.
Increase the tick range on the c9_trunk movement commands (currently 15..85) to make the trunk taller, or adjust the pitch angle in loop command 12 to make the branches curve higher or lower.
▶Mythic World-Tree Yggdrasil BloomingSelf-building StructuresExpert20 cmds
▶Autonomous Cave BorrowerSelf-building StructuresHard24 cmds
▶Bonsai Cherry Blossom Time-Lapse SculptingSelf-building StructuresHard24 cmds
▶Floating Island TerraformerSelf-building StructuresHard24 cmds
▶Procedural Canopy SprouterSelf-building StructuresHard23 cmds
▶Procedural Mountain SculptorSelf-building StructuresHard23 cmds