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

CraftCompletedEvent

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

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

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


kind: "alchemy" | "smithing"

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

Which craft.


knowledge: Record<string, number> | undefined

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

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


lockpicks: number | undefined

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

Smithing only: lockpicks granted.


outcome: "failed" | "success"

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

failed granted the game’s failed potion.


outputs: InventoryUnit[]

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

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


quality: number

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

Brewing or workpiece quality, 0 to 1.


recipe: string

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

The recipe matched, or empty.


session: string

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

The session id.


station: string

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

Station id.


virtualWorld: number

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

The station’s virtual world.


xp: number

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

Base XP ordered.