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

unequipItem

unequipItem(writer, entity, slot): boolean

Takes off what slot wears into the bag’s first empty slot, and its modifiers off the entity’s stats. Returns whether it took it off: not from an empty slot, or into a bag with no empty slot. A page in a room sends inventory.commands.unequip instead.

Parameter Type
writer EntityAuthority
entity Entity
slot "head" | "body" | "hands" | "feet" | "ring1" | "ring2" | "neck" | "mainhand" | "offhand" | EquipmentSlot

boolean