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

CraftCompletedEvent

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

A batch or workpiece whose result was granted: the output is in the inventory and the XP was ordered.

grade: number

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

The product’s native rank; for smithing, its item quality tier.


kind: "alchemy" | "smithing"

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

Which craft.


knowledge: Record<string, number> | undefined

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

Alchemy only: the player’s recipe knowledge after this batch, as Crafting.knowledge returns it.


lockpicks: number | undefined

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

Smithing only: lockpicks granted.


outcome: "failed" | "success"

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

failed granted the game’s failed potion.


outputs: InventoryUnit[]

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

The inventory rows that received the output, lockpicks included. Do not grant it again.


quality: number

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

Brewing or workpiece quality, 0 to 1.


recipe: string

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

The recipe matched, or empty.


session: string

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

The session id.


station: string

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

Station id.


virtualWorld: number

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

The station’s virtual world.


xp: number

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

Base XP ordered.