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

InventoryState

Property Type Description
equipment Readonly<WornItems> What the player’s character wears, the EquipmentTrait as it stands, by slot; a slot left out is empty.
slots readonly (ItemStack | null)[] The player’s bag, the InventoryTrait on the player’s character as it stands: one entry a slot, null where the slot is empty. Read it; the verbs write the trait.