moveStack
moveStack(
writer,entity,stackMove):boolean
Moves the stack in slot from to slot to. Into an empty slot it
moves whole; onto a stack it can merge with, it tops that stack up to
the max and leaves the rest where it was; onto any other, the two swap.
Returns whether anything moved: a slot the bag does not have moves
nothing. A page in a room sends inventory.commands.move instead.
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
writer |
EntityAuthority |
entity |
Entity |
stackMove |
StackMove |
Returns
Section titled “Returns”boolean