CONTENT CONTRACT · VERSION 1
TaskView
A villager's task as the snapshot saw it.
Signature
{ actor: ActorRef, carried: Count, delivered: Count, fed: boolean, place: ActorRef, recipe: (RecipeId)?, state: TaskState, task: VillagerTaskId }Fields
| Name | Type | Meaning |
|---|---|---|
actor | ActorRef | The villager. Length: 1…256; Pattern: ^[\s\S]+$ |
carried | Count | Items of its yield in its inventory, on their way to the chest. Range: 0…2147483647; Unit: count |
delivered | Count | Items it has put into chests for the task. Range: 0…2147483647; Unit: count |
fed | boolean | It ate from the provisions chest this morning and works faster today. |
place | ActorRef | The sign (or station) it works at. Length: 1…256; Pattern: ^[\s\S]+$ |
recipe | RecipeId | The recipe it crafts at a station; absent otherwise. Length: 1…129; Pattern: ^[a-z][a-z0-9_]{0,31}:[a-z][a-z0-9_]{0,95}$; Reference: recipe |
state | TaskState | What it is on, or why it waits. |
task | VillagerTaskId | The task. Length: 1…129; Pattern: ^[a-z][a-z0-9_]{0,31}:[a-z][a-z0-9_]{0,95}$; Reference: villager_task |