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.
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
writer |
EntityAuthority |
entity |
Entity |
slot |
"head" | "body" | "hands" | "feet" | "ring1" | "ring2" | "neck" | "mainhand" | "offhand" | EquipmentSlot |
Returns
Section titled “Returns”boolean