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

itemStack

const itemStack: SaveCodec<ItemStack>

The codec of an item stack inside a kit’s or a game’s own key: a shop that keeps stacks stores itemStack.toSave(stack) and reads itemStack.fromSave(saved).