tree: section. It has no item of its own: it grows from a sapling, from new chunks if you let it generate, or from /lodeitems tree.
A tree takes three things you already know how to make, plus the tree itself:
- a log and leaves, which are plain blocks: your own, or any vanilla block such as
oak_logandcherry_leaves; - a sapling (
type: florawithsapling:), if players should be able to grow it; - the tree (
type: florawithtree:), which says what it’s made of and how it’s shaped.
items/flora/willow/willow.yml
log, leaves, the targets of replace), a bare name means a Lode Items block first, then a vanilla one. A vanilla block can carry properties: oak_leaves[persistent=true].
Two ways to shape a tree
Procedural
Made up fresh each time from your settings: height, trunk width, lean, branches, leaves and crown shape.
From schematics
Your own builds, saved with WorldEdit or a structure block, with blocks swapped as it grows.
schematics:.
How a tree grows
When a sapling grows, a tree generates or you use/lodeitems tree, the tree is planned first, then placed:
- It only grows if its trunk and branches have room. Wood may replace air, plants, leaves, walk-through and see-through Lode Items blocks, and the sapling itself. If anything else is in the way, nothing is placed and the sapling stays and tries again later.
- Leaves only go where there is room: air and plants. They never replace other blocks.
- Vanilla leaves get their real distance to the wood, so they decay when the tree is cut down, just like natural ones. Leaves that would be too far from any wood to stay are left out.
Trying a tree out
/lodeitems reload, and grow another.
Not yet supported
- Your own leaves blocks never decay, even when the tree is cut down. Vanilla leaves do.
- Protection plugins can’t stop a sapling growing a tree into the area they protect.
- 2x2 saplings that grow giant trees, like dark oak and jungle saplings.
