CONTENT CONTRACT · VERSION 1
crop_planted
An actor sowed a crop on a tilled field.
Signature
{ actor: ActorRef, crop: CropId, kind: "crop_planted", player: (PlayerRef)?, position: Position }Fields
| Name | Type | Meaning |
|---|---|---|
actor | ActorRef | Acting actor (human- or AI-controlled). Length: 1…256; Pattern: ^[\s\S]+$ |
crop | CropId | Crop sown. Length: 1…129; Pattern: ^[a-z][a-z0-9_]{0,31}:[a-z][a-z0-9_]{0,95}$; Reference: crop |
kind | "crop_planted" | 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",
"crop": "core:carrot_crop",
"kind": "crop_planted",
"player": "p1",
"position": {
"map": "m1",
"x_mm": 1000,
"y_mm": 0,
"z_mm": 2000
}
}