EverambleGAME API / 1

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

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
ordernumberStation-local order identity.
Range: 0…4294967295
playerPlayerRefPlayer controlling the actor; absent for AI-controlled actors.
Length: 1…256; Pattern: ^[\s\S]+$
positionPositionPosition where crafting committed, before any later relocation.
recipeRecipeIdCrafted recipe.
Length: 1…129; Pattern: ^[a-z][a-z0-9_]{0,31}:[a-z][a-z0-9_]{0,95}$; Reference: recipe
stationActorRefStation 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"
}