CONTENT CONTRACT · VERSION 1
crop_harvested
An actor harvested a ripe crop; its yield reached the inventory (resource_harvested follows for the item).
Signature
{ actor: ActorRef, count: PositiveCount, crop: CropId, item: ItemId, kind: "crop_harvested", player: (PlayerRef)?, position: Position }Fields
| Name | Type | Meaning |
|---|---|---|
actor | ActorRef | Acting actor (human- or AI-controlled). Length: 1…256; Pattern: ^[\s\S]+$ |
count | PositiveCount | Units harvested (more for a well-watered crop). Range: 1…2147483647; Unit: count |
crop | CropId | Crop harvested. Length: 1…129; Pattern: ^[a-z][a-z0-9_]{0,31}:[a-z][a-z0-9_]{0,95}$; Reference: crop |
item | ItemId | Harvested item. Length: 1…129; Pattern: ^[a-z][a-z0-9_]{0,31}:[a-z][a-z0-9_]{0,95}$; Reference: item |
kind | "crop_harvested" | Discriminant |
player | PlayerRef | Player controlling the actor; absent for AI-controlled actors. Length: 1…256; Pattern: ^[\s\S]+$ |
position | Position | Where the field lies. |
Validated example
{
"actor": "a1",
"count": 3,
"crop": "core:carrot_crop",
"item": "core:carrot",
"kind": "crop_harvested",
"player": "p1",
"position": {
"map": "m1",
"x_mm": 1000,
"y_mm": 0,
"z_mm": 2000
}
}