EverambleGAME API / 1

CONTENT CONTRACT · VERSION 1

task_delivered

A villager put the yield of its task into a chest.

Signature

{ actor: ActorRef, count: PositiveCount, item: ItemId, kind: "task_delivered", npc: NpcId, position: Position, target: ActorRef, task: VillagerTaskId }

Fields

NameTypeMeaning
actorActorRefThe villager.
Length: 1…256; Pattern: ^[\s\S]+$
countPositiveCountUnits delivered.
Range: 1…2147483647; Unit: count
itemItemIdItem delivered.
Length: 1…129; Pattern: ^[a-z][a-z0-9_]{0,31}:[a-z][a-z0-9_]{0,95}$; Reference: item
kind"task_delivered"Discriminant
npcNpcIdThe villager's NPC definition.
Length: 1…129; Pattern: ^[a-z][a-z0-9_]{0,31}:[a-z][a-z0-9_]{0,95}$; Reference: npc
positionPositionWhere the chest stands.
targetActorRefThe chest.
Length: 1…256; Pattern: ^[\s\S]+$
taskVillagerTaskIdIts task.
Length: 1…129; Pattern: ^[a-z][a-z0-9_]{0,31}:[a-z][a-z0-9_]{0,95}$; Reference: villager_task

Validated example

{
  "actor": "a1",
  "count": 4,
  "item": "core:wood",
  "kind": "task_delivered",
  "npc": "core:juana",
  "position": {
    "map": "m1",
    "x_mm": 0,
    "y_mm": 0,
    "z_mm": 0
  },
  "target": "a3",
  "task": "core:task_woodcutting"
}