API reference Obsidian.API.Blocks
TreeGrower record
The trees a sapling grows into, like vanilla's TreeGrower: configured features named by identifier, vanilla's (minecraft:oak) or a plugin's or data pack's (from worldgen/configured_feature files), looked up when the sapling grows, so that a reload or override applies at once.
public sealed record TreeGrower : IEquatable<TreeGrower>
In Obsidian.API.
Remarks
Growing picks like vanilla's since 26.1, each list by weight: a tree from TreeGrower.MegaTrees where four saplings of the block stand in a square (its north-west corner is where the feature's placed), else one from TreeGrower.FlowerTrees when a flower is within two blocks of the sapling, else one from TreeGrower.Trees. A sapling with nothing to place doesn't grow, like a single dark oak sapling, and bone meal does nothing to it.
A grower whose lists are all empty uses the older shape instead: TreeGrower.Tree, TreeGrower.MegaTree and TreeGrower.Flowers, each with its secondary tree taking TreeGrower.SecondaryChance of the weight.
A sapling with a stage property (StateProperty.Int("stage", 0, 1)) grows in two steps like vanilla's: the first sets its stage to 1, the second places the tree. Without one, every step places the tree.
Constructors
public TreeGrower();Properties
Flowers
public string Flowers { get; init; }The tree it grows near flowers, in the older shape.
FlowerTrees
public IReadOnlyList<WeightedFeature> FlowerTrees { get; init; }The trees it grows near flowers, like an oak with a bee nest.
MegaTree
public string MegaTree { get; init; }The tree four saplings in a square grow into, in the older shape.
MegaTrees
public IReadOnlyList<WeightedFeature> MegaTrees { get; init; }The trees four saplings in a square grow into, like a dark oak.
SecondaryChance
public float SecondaryChance { get; init; }How likely a secondary tree is, from 0 to 1.
SecondaryFlowers
public string SecondaryFlowers { get; init; }The tree it grows near flowers instead of TreeGrower.Flowers with TreeGrower.SecondaryChance.
SecondaryMegaTree
public string SecondaryMegaTree { get; init; }The tree four saplings grow into instead of TreeGrower.MegaTree with TreeGrower.SecondaryChance, like a mega pine.
SecondaryTree
public string SecondaryTree { get; init; }The tree it grows instead of TreeGrower.Tree with TreeGrower.SecondaryChance, like a fancy oak.
ShortestTree
public string ShortestTree { get; init; }The tree whose trunk bone meal needs room for: the sapling takes bone meal only where its trunk's base height above it is inside the build range.
Tree
public string Tree { get; init; }The tree it grows by itself, in the older shape (see the remarks).
Trees
public IReadOnlyList<WeightedFeature> Trees { get; init; }The trees it grows by itself, like an oak (nine in ten) or a fancy oak.