CONTENT CONTRACT · VERSION 1
store_item
Move a positive quantity from the inventory of a permitted actor into a storage structure (a chest) within 4 m of it; both change together or neither.
Signature
{ count: PositiveCount, holder: ActorRef, item: ItemId, kind: "store_item", structure: ActorRef }Fields
| Name | Type | Meaning |
|---|---|---|
count | PositiveCount | Number of units moved. Range: 1…2147483647; Unit: count |
holder | ActorRef | Actor whose inventory gives the items. Length: 1…256; Pattern: ^[\s\S]+$ |
item | ItemId | Item moved. Length: 1…129; Pattern: ^[a-z][a-z0-9_]{0,31}:[a-z][a-z0-9_]{0,95}$; Reference: item |
kind | "store_item" | Discriminant |
structure | ActorRef | Storage structure that takes them (`actor/s<id>`). Length: 1…256; Pattern: ^[\s\S]+$ |
Validated example
{
"count": 2,
"holder": "a1",
"item": "core:wood",
"kind": "store_item",
"structure": "s3"
}