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.
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
writer |
EntityAuthority |
entity |
Entity |
stackSplit |
StackSplit |
Returns
Section titled “Returns”boolean