CONTENT CONTRACT · VERSION 1
TreeDefinition
A fellable forest tree species: its growth stages, trunk, the wood of its parts, what it drops and its sapling. Generated maps place it through the biomes that list it; the stage index and the species are saved, so the order of `stages` belongs to the species.
Signature
{ id: ContentId, loot: (LootId)?, name: TextKey, parts: TreeParts, sapling: (SaplingGrowth)?, stages: {TreeStageDefinition}, trunk: TreeTrunk }Fields
| Name | Type | Meaning |
|---|---|---|
id | ContentId | Package-qualified identity; unique within its declaring namespace. Length: 1…129; Pattern: ^[a-z][a-z0-9_]{0,31}:[a-z][a-z0-9_]{0,95}$ |
loot | LootId | Loot a felled tree drops beside its trunk; absent: only its wood. Length: 1…129; Pattern: ^[a-z][a-z0-9_]{0,31}:[a-z][a-z0-9_]{0,95}$; Reference: loot |
name | TextKey | Localized species label. Length: 1…129; Pattern: ^[a-z][a-z0-9_]{0,31}:[a-z][a-z0-9_]{0,95}$; Reference: text |
parts | TreeParts | Blows and wood of the standing trunk, each of its three logs and the stump. |
sapling | SaplingGrowth | Sapling players plant on grass or soil and the steps it grows through over one year; absent: the species is not planted. |
stages | {TreeStageDefinition} | Growth stages, smallest first; a generated tree draws its stage by `share_ppm`. Items: 1…4 |
trunk | TreeTrunk | Trunk of the grown tree. |