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

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.

Parameter Type
writer EntityAuthority
entity Entity
stackMove StackMove

boolean