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

addInventory

addInventory(writer, entity, slots): void

Gives the entity a bag of slots slots, and resizes a bag it has, keeping the stacks in the slots that remain. The Inventory component’s verb, for a system that spawns an entity without one.

Parameter Type
writer EntityAuthority
entity Entity
slots number

void