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.
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
entity |
Entity |
itemStack |
Pick<ItemStack, "item" | "count"> |
Returns
Section titled “Returns”number