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

CraftSessionInfo

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

A player’s alchemy session or kept table, or their smithing workpiece. A copy: changing it changes nothing.

expiresInMs: number

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

Milliseconds until the session times out.


id: string

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

The session id.


kind: "alchemy" | "smithing"

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

Which craft.


materials: object[] | undefined

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

Smithing only: the units taken from the inventory for this workpiece. Quest materials are required but never taken.


phase: "entering" | "brewing" | "finishing" | "betweenBatches" | "working"

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

Where the batch is; working for a smithing workpiece.


recipe: string | undefined

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

Smithing only: the recipe being worked.


resources: object[] | undefined

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

Alchemy only: what is on the table: item class, the inventory row it came from (empty for a base liquid), and the native table position.


sequence: number | undefined

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

Alchemy only: native actions accepted so far.


station: string

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

Station id.


virtualWorld: number

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

The station’s virtual world.