Skip to content
KCKingdoms Connected Scripting APIScripting guides and API
Data shapeServer APIGenerated

Preparation

Defined in: server/api.d.ts:2196

Items a player’s game dried on a drying rack, smoked in a smokehouse or cooked at a fire, and what the server is about to make of them. Frozen: a handler can refuse it, not change it.

items: object[]

Defined in: server/api.d.ts:2210

Each inventory row about to be taken: amount units of class item, which become class product.

amount: number

id: string

item: string

product: string


kind: "dry" | "smoke" | "cook"

Defined in: server/api.d.ts:2200

A drying rack dries herbs and food; a smokehouse smokes food; a fire cooks food.


station: string

Defined in: server/api.d.ts:2205

The drying rack, smokehouse or fire the player stands at, as <level>:<guid>; the same on every machine and across restarts. A fire’s guid is its cook pot’s, as CookPot.get takes it.