Skip to content
Work in progress. These docs describe Spawnite at launch, and some parts are still being built.

InventoryTrait

const InventoryTrait: Trait<() => (ItemStack | null)[]>

An entity’s bag: a fixed count of slots, each empty or one stack. The verbs write a new list, so a reader of the trait sees each change.