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
| Name | Type | Meaning |
|---|---|---|
actor | ActorRef | The villager. Length: 1…256; Pattern: ^[\s\S]+$ |
count | PositiveCount | Units delivered. Range: 1…2147483647; Unit: count |
item | ItemId | Item 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 |
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 |
position | Position | Where the chest stands. |
target | ActorRef | The chest. Length: 1…256; Pattern: ^[\s\S]+$ |
task | VillagerTaskId | Its 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"
}