EverambleGAME API / 1

CONTENT CONTRACT · VERSION 1

TaskWorkedEvent

A villager finished one round of work at its task.

Signature

{ action: TaskAction, actor: ActorRef, item: (ItemId)?, kind: "task_worked", npc: NpcId, position: Position, task: VillagerTaskId }

Fields

NameTypeMeaning
actionTaskActionWhat it did.
actorActorRefThe villager.
Length: 1…256; Pattern: ^[\s\S]+$
itemItemIdWhat the round gave or used (wood, the crop harvested, the seed sown, the fish, the dish crafted).
Length: 1…129; Pattern: ^[a-z][a-z0-9_]{0,31}:[a-z][a-z0-9_]{0,95}$; Reference: item
kind"task_worked"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 it worked.
taskVillagerTaskIdIts task.
Length: 1…129; Pattern: ^[a-z][a-z0-9_]{0,31}:[a-z][a-z0-9_]{0,95}$; Reference: villager_task