CONTENT CONTRACT · VERSION 1
crop
A crop players sow on tilled soil from its seed, water and harvest.
Signature
{ days: CropDays, harvest: ItemId, id: ContentId, kind: "crop", name: TextKey, regrow_days: (CropDays)?, ripe_model: Name, season: SeasonId, seed: ItemId, stages: {CropStage} }Fields
| Name | Type | Meaning |
|---|---|---|
days | CropDays | Watered days in its season from sowing to ripe. Range: 1…60; Unit: count |
harvest | ItemId | Item a harvest gives (empty hands, Interact on the ripe crop). Length: 1…129; Pattern: ^[a-z][a-z0-9_]{0,31}:[a-z][a-z0-9_]{0,95}$; Reference: item |
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 | "crop" | Discriminant |
name | TextKey | Localized crop label. Length: 1…129; Pattern: ^[a-z][a-z0-9_]{0,31}:[a-z][a-z0-9_]{0,95}$; Reference: text |
regrow_days | CropDays | Watered days in its season from a harvest to ripe again; absent: a harvest leaves bare soil. Range: 1…60; Unit: count |
ripe_model | Name | Foliage prototype `flora:<model>` of the map's world library drawn while ripe. Length: 1…96; Pattern: ^[a-z][a-z0-9_]{0,95}$ |
season | SeasonId | Season the crop grows fastest in. Length: 1…129; Pattern: ^[a-z][a-z0-9_]{0,31}:[a-z][a-z0-9_]{0,95}$; Reference: season |
seed | ItemId | Item that sows the crop: held in hand, Interact on bare tilled soil. Length: 1…129; Pattern: ^[a-z][a-z0-9_]{0,31}:[a-z][a-z0-9_]{0,95}$; Reference: item |
stages | {CropStage} | Looks while growing, first to last, by share of the growth; regrowth shows the last. Items: 1…4 |
Validated example
{
"days": 5,
"harvest": "core:cabbage",
"id": "core:cabbage_crop",
"kind": "crop",
"name": "core:cabbage_name",
"ripe_model": "cabbage",
"season": "core:autumn",
"seed": "core:cabbage_seeds",
"stages": [
{
"model": "cabbage_sprout",
"wilted_model": "cabbage_sprout_wilted"
},
{
"model": "cabbage_young",
"wilted_model": "cabbage_young_wilted"
},
{
"model": "cabbage_grown",
"wilted_model": "cabbage_grown_wilted"
}
]
}