CONTENT CONTRACT · VERSION 1
tree
A fellable forest tree species: stages, trunk, wood, loot and sapling.
Signature
{ id: ContentId, kind: "tree", 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}$ |
kind | "tree" | Discriminant |
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. |
Validated example
{
"id": "core:birch_tree",
"kind": "tree",
"loot": "core:birch_felled",
"name": "core:birch_tree_name",
"parts": {
"log": {
"hits": 5,
"wood": 1
},
"stump": {
"hits": 15,
"wood": 3
},
"trunk": {
"hits": 11,
"wood": 1
}
},
"sapling": {
"item": "core:birch_sapling",
"steps": [
{
"scale_permille": 325,
"stage": "sapling",
"year_permille": 0
},
{
"scale_permille": 552,
"stage": "sapling",
"year_permille": 80
},
{
"scale_permille": 650,
"stage": "young",
"year_permille": 180
},
{
"scale_permille": 850,
"stage": "young",
"year_permille": 300
},
{
"scale_permille": 1000,
"stage": "young",
"year_permille": 450
},
{
"scale_permille": 800,
"stage": "mature",
"year_permille": 650
},
{
"scale_permille": 900,
"stage": "mature",
"year_permille": 850
},
{
"scale_permille": 1000,
"stage": "mature",
"year_permille": 1000
}
]
},
"stages": [
{
"cut_model": "birch:sapling",
"girth_ppm": 227360,
"id": "sapling",
"model": "birch:sapling",
"name": "core:tree_sapling",
"planted": {
"hits": 1,
"wood": 0
},
"scale_ppm": 320000,
"share_ppm": 60000
},
{
"cut_model": "birch:young",
"girth_ppm": 594140,
"id": "young",
"model": "birch:young",
"name": "core:tree_young",
"planted": {
"hits": 5,
"wood": 2
},
"scale_ppm": 670000,
"share_ppm": 60000
},
{
"cut_model": "birch:mature",
"girth_ppm": 1000000,
"id": "mature",
"model": "birch:mature",
"name": "core:tree_mature",
"planted": {
"hits": 11,
"wood": 4
},
"scale_ppm": 1000000,
"share_ppm": 880000
}
],
"trunk": {
"leader_ppm": 890000,
"model_height_mm": 8300,
"radius_mm": 220
}
}