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
| Name | Type | Meaning |
|---|---|---|
actor | ActorRef | The villager. Length: 1…256; Pattern: ^[\s\S]+$ |
kind | "task_revoked" | Discriminant |
npc | NpcId | The villager's NPC definition. Length: 1…129; Pattern: ^[a-z][a-z0-9_]{0,31}:[a-z][a-z0-9_]{0,95}$; Reference: npc |
player | PlayerRef | Player 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]+$ |
task | VillagerTaskId | The 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"
}