CONTENT CONTRACT · VERSION 1
crafted
An actor crafted a recipe.
Signature
{ actor: ActorRef, count: PositiveCount, kind: "crafted", player: (PlayerRef)?, recipe: RecipeId }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 |
player | PlayerRef | Player controlling the actor; absent for AI-controlled actors. Length: 1…256; Pattern: ^[\s\S]+$ |
recipe | RecipeId | Crafted recipe. Length: 1…129; Pattern: ^[a-z][a-z0-9_]{0,31}:[a-z][a-z0-9_]{0,95}$; Reference: recipe |
Validated example
{
"actor": "a1",
"count": 1,
"kind": "crafted",
"player": "p1",
"recipe": "core:wood_wall_craft"
}