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

equipItem

equipItem(writer, entity, from): boolean

Wears the stack in bag slot from in the slot its definition names, and adds its modifiers to the entity’s stats: the copy’s own data.modifiers where it has them, its definition’s otherwise. What that slot wore goes into the bag slot, and its modifiers come off. Returns whether it wore it: not from an empty slot, for an item with no equip, or on an entity with no equipment. A page in a room sends inventory.commands.equip instead.

Parameter Type
writer EntityAuthority
entity Entity
from number

boolean