CookPot
The stew pots on the game's fireplaces, with stock held by the server per dimension: the meal, 'goulash', 'lentil' or 'soup', the meals left, whether eating is allowed, and any poison. A pot is named by its fireplace's GUID. An untouched pot serves the level's meal, four of it, or none if the level starts it empty. A pot is { guid, position, food, nutrition, poison, portions, capacity, enabled, state, fireLit, dimension }. `state` is 'empty', 'half' or 'full'. `fireLit` is the state set by setFire, or null while each player's game controls its own fire. Stock lasts until the server stops. Calls made for a player return { ok, code }, with codes such as unknownPot, tooFar (over 4 m), cannotAct, disabled, notEmpty and insufficientItems.
cookPot.all()
CookPot.all(dimension = GLOBAL_WORLD)The pots in a dimension: all catalogued pots in the shared one, or those used in another.
cookPot.get()
CookPot.get(guid, dimension = GLOBAL_WORLD)One pot's stock, or null for an unknown GUID.
cookPot.refill()
CookPot.refill(guid, portions = DEFAULT_PORTIONS, dimension = GLOBAL_WORLD)Adds meals, 0 to 1000 and by default 4, and clears the poison.
cookPot.setFire()
CookPot.setFire(guid, lit, dimension = GLOBAL_WORLD)Lights the pot's fire, with its steam and smoke, or puts it out for all players in the dimension, including those arriving later, and holds it there. Villagers stoking it and burning out no longer change it. null returns control to each player's game. Returns false for a GUID not in the catalogue.
cookPot.setEnabled()
CookPot.setEnabled(guid, enabled, dimension = GLOBAL_WORLD)Allows or forbids eating from a pot.
cookPot.setState()
CookPot.setState(guid, state, dimension = GLOBAL_WORLD)Sets how full a pot looks and how much it holds.
cookPot.setFood()
CookPot.setFood(guid, food, dimension = GLOBAL_WORLD)Changes the meal a pot serves, and its look follows.
cookPot.poisons()
CookPot.poisons()The item GUIDs of poisons a pot accepts.
cookPot.topUpFrom()
CookPot.topUpFrom(player, guid, recipe)Refills an empty pot from a player's inventory, using up the ingredients.
cookPot.poison()
CookPot.poison(player, guid, rowId)Poisons a pot with a poison from a player's inventory, so later meals give it.