CONTENT CONTRACT · VERSION 1
item_stored
An actor put items into a storage structure (a chest, the storehouse); taking them out raises no event.
Signature
{ actor: ActorRef, count: PositiveCount, definition: StructureId, item: ItemId, kind: "item_stored", player: (PlayerRef)?, position: Position, target: ActorRef }Fields
| Name | Type | Meaning |
|---|---|---|
actor | ActorRef | Acting actor (human- or AI-controlled). Length: 1…256; Pattern: ^[\s\S]+$ |
count | PositiveCount | Units stored. Range: 1…2147483647; Unit: count |
definition | StructureId | Structure definition of the storage. Length: 1…129; Pattern: ^[a-z][a-z0-9_]{0,31}:[a-z][a-z0-9_]{0,95}$; Reference: structure |
item | ItemId | Stored item. Length: 1…129; Pattern: ^[a-z][a-z0-9_]{0,31}:[a-z][a-z0-9_]{0,95}$; Reference: item |
kind | "item_stored" | Discriminant |
player | PlayerRef | Player controlling the actor; absent for AI-controlled actors. Length: 1…256; Pattern: ^[\s\S]+$ |
position | Position | Where the storage stands. |
target | ActorRef | Storage structure the items went into. Length: 1…256; Pattern: ^[\s\S]+$ |
Validated example
{
"actor": "a1",
"count": 2,
"definition": "core:chest_structure",
"item": "core:wood",
"kind": "item_stored",
"player": "p1",
"position": {
"map": "m1",
"x_mm": 1000,
"y_mm": 0,
"z_mm": 2000
},
"target": "s1"
}