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

CraftSessionInfo

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

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:3880

Milliseconds until the session times out.


id: string

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

The session id.


kind: "alchemy" | "smithing"

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

Which craft.


materials: object[] | undefined

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

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:3855

Where the batch is; working for a smithing workpiece.


recipe: string | undefined

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

Smithing only: the recipe being worked.


resources: object[] | undefined

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

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:3860

Alchemy only: native actions accepted so far.


station: string

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

Station id.


virtualWorld: number

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

The station’s virtual world.