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

countStacks

countStacks(slots, item): number

The copies of item across slots, whatever each copy’s data: a bag’s trait, or the copy of it a view reads.

Parameter Type
slots readonly (ItemStack | null)[]
item string

number