CONTENT CONTRACT · VERSION 1
crafted
An actor crafted a recipe.
Signature
{ actor: ActorRef, count: PositiveCount, kind: "crafted", order: (number)?, player: (PlayerRef)?, position: Position, recipe: RecipeId, station: (ActorRef)?, station_tags: ({TagId})? }Fields
| Name | Type | Meaning |
|---|---|---|
actor | ActorRef | Acting actor (human- or AI-controlled). Length: 1…256; Pattern: ^[\s\S]+$ |
count | PositiveCount | Number of crafts committed. Range: 1…2147483647; Unit: count |
kind | "crafted" | Discriminant |
order | number | Station-local order identity. Range: 0…4294967295 |
player | PlayerRef | Player controlling the actor; absent for AI-controlled actors. Length: 1…256; Pattern: ^[\s\S]+$ |
position | Position | Position where crafting committed, before any later relocation. |
recipe | RecipeId | Crafted recipe. Length: 1…129; Pattern: ^[a-z][a-z0-9_]{0,31}:[a-z][a-z0-9_]{0,95}$; Reference: recipe |
station | ActorRef | Station reference; absent for immediate crafting. Length: 1…256; Pattern: ^[\s\S]+$ |
station_tags | {TagId} | Station tags captured for event filtering. Items: 1…64 |
Validated example
{
"actor": "a1",
"count": 1,
"kind": "crafted",
"player": "p1",
"position": {
"map": "m1",
"x_mm": 0,
"y_mm": 0,
"z_mm": 0
},
"recipe": "core:bench_craft"
}