EverambleGAME API / 1

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

NameTypeMeaning
countPositiveCountNumber of units moved.
Range: 1…2147483647; Unit: count
holderActorRefActor whose inventory gives the items.
Length: 1…256; Pattern: ^[\s\S]+$
itemItemIdItem 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
structureActorRefStorage 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"
}