CONTENT CONTRACT · VERSION 1
unlock_recipe
Make a recipe available to a player; an unlocked recipe stays unchanged.
Signature
{ kind: "unlock_recipe", player: (PlayerRef)?, recipe: RecipeId }Fields
| Name | Type | Meaning |
|---|---|---|
kind | "unlock_recipe" | Discriminant |
player | PlayerRef | Player that learns the recipe; absent: every player of the world, also those who join later. Length: 1…256; Pattern: ^[\s\S]+$ |
recipe | RecipeId | Recipe unlocked. Length: 1…129; Pattern: ^[a-z][a-z0-9_]{0,31}:[a-z][a-z0-9_]{0,95}$; Reference: recipe |
Validated example
{
"kind": "unlock_recipe",
"player": "p1",
"recipe": "reference:wall_build"
}