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

removeItem

removeItem(entity, itemStack): number

Takes up to count copies of item out of the entity’s bag, whatever each copy’s data, from the first slot on. Returns the count it took.

Parameter Type
entity Entity
itemStack Pick<ItemStack, "item" | "count">

number