CONTENT CONTRACT · VERSION 1
CropHarvestedEvent
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. |