EverambleGAME API / 1

CONTENT CONTRACT · VERSION 1

crafted

An actor crafted a recipe.

Signature

{ actor: ActorRef, count: PositiveCount, kind: "crafted", player: (PlayerRef)?, recipe: RecipeId }

Fields

NameTypeMeaning
actorActorRefActing actor (human- or AI-controlled).
Length: 1…256; Pattern: ^[\s\S]+$
countPositiveCountNumber of crafts committed.
Range: 1…2147483647; Unit: count
kind"crafted"Discriminant
playerPlayerRefPlayer controlling the actor; absent for AI-controlled actors.
Length: 1…256; Pattern: ^[\s\S]+$
recipeRecipeIdCrafted 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"
}