What it does
inventory.setMaxSlots sets MaxSlots on an inventory object. It takes n.
Signature
inventory.setMaxSlots(n)Arguments
n
Example · generated
function start() { inventory.setMaxSlots(1);}inventory.setMaxSlots is called with values of the shape its signature asks for. The code sits in start(), which the engine calls once, when the entity spawns.