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

splitStack

splitStack(writer, entity, stackSplit): boolean

Moves count copies of the stack in slot from into slot to, with the same data. Only into an empty slot, and no more than the stack holds; otherwise nothing moves, and it returns false. A page in a room sends inventory.commands.split instead.

Parameter Type
writer EntityAuthority
entity Entity
stackSplit StackSplit

boolean