EverambleGAME API / 1

CONTENT CONTRACT · VERSION 1

task_revoked

A villager's task ended: a player ended it or took its tool back, or its sign fell.

Signature

{ actor: ActorRef, kind: "task_revoked", npc: NpcId, player: (PlayerRef)?, task: VillagerTaskId }

Fields

NameTypeMeaning
actorActorRefThe villager.
Length: 1…256; Pattern: ^[\s\S]+$
kind"task_revoked"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
playerPlayerRefPlayer who ended it or took the tool back from the task panel; absent otherwise (the tool left another way, the sign fell).
Length: 1…256; Pattern: ^[\s\S]+$
taskVillagerTaskIdThe task that ended.
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",
  "kind": "task_revoked",
  "npc": "core:juana",
  "player": "p1",
  "task": "core:task_woodcutting"
}