CraftRecipeDefinition
Defined in: server/api.d.ts:3631
A recipe for Crafting.registerRecipe, field for field a row of the game’s AlchemyRecipe.xml or BlacksmithRecipes.xml. Items are item class GUIDs of the game or of a streamed mod; custom items from Items.register cannot be used. Texts are shown as written. Pictures are base64 PNGs, each at most 4096x4096 pixels, 256 KiB of PNG for the recipe’s pictures together.
Properties
Section titled “Properties”base:
"Water"|"Wine"|"Oil"|"Spiritus"|undefined
Defined in: server/api.d.ts:3695
Alchemy, required: the base liquid.
baseXP
Section titled “baseXP”baseXP:
number|undefined
Defined in: server/api.d.ts:3705
Alchemy: BaseQualityRewardXP, the brewing XP before grade multipliers and step XP. Default 0.
bookPicturesFrom
Section titled “bookPicturesFrom”bookPicturesFrom:
number|undefined
Defined in: server/api.d.ts:3670
Alchemy: the RecipeId of one of the game’s alchemy recipes whose two book pictures the recipe book shows for this one, instead of productImage and recipeImage. Crafting.recipes(player, 'alchemy') lists the ids (key.id).
category
Section titled “category”category:
"ShortSword"|"LongSword"|"Axe"|"Other"|undefined
Defined in: server/api.d.ts:3720
Smithing, required: the recipe screen’s tab.
description
Section titled “description”description:
string|undefined
Defined in: server/api.d.ts:3730
Smithing: the description the smithy shows.
dlcId:
number|undefined
Defined in: server/api.d.ts:3675
Native DLC id the recipe belongs to, filtered by required_dlc as the game’s are. Default 0.
icon:
string|undefined
Defined in: server/api.d.ts:3650
UIIcon: one of the game’s item icons, by name, such as potion_hair_o_dog or shortswordCommon. Leave it out when iconImage brings one.
iconImage
Section titled “iconImage”iconImage:
string|undefined
Defined in: server/api.d.ts:3655
The recipe’s own icon in the recipe lists, a base64 PNG. Fitted onto the game’s 64x64 item icon square, aspect kept, so a square image with the item reaching the edges looks like the game’s.
id:
string|number
Defined in: server/api.d.ts:3640
Alchemy: a RecipeId from 1 to 2147483647 the game does not use; when two recipes would identify the same brew, the lower id wins, as in the game. Smithing: an Id of letters, digits, _, - and ., at most 128 characters, the game does not use.
ingredients
Section titled “ingredients”ingredients:
object[]
Defined in: server/api.d.ts:3685
1 to 64 distinct items and the units one attempt takes. A quest item must be held but is never taken.
amount
Section titled “amount”amount:
number
item:
string
kind:
"alchemy"|"smithing"
Defined in: server/api.d.ts:3635
Which craft.
minSkill
Section titled “minSkill”minSkill:
number|undefined
Defined in: server/api.d.ts:3680
Smithing: the craftsmanship it takes. Default 0.
name:
string
Defined in: server/api.d.ts:3645
The recipe’s name in the recipe book or the smithy.
perk:
string|undefined
Defined in: server/api.d.ts:3715
Smithing: the perk GUID that teaches the recipe. Without one, every smith knows it.
productImage
Section titled “productImage”productImage:
string|undefined
Defined in: server/api.d.ts:3660
Alchemy: the recipe book’s picture of the product, beside the description, a base64 PNG. Fitted onto a 256x256 square, as the game’s are.
products
Section titled “products”products:
object[]
Defined in: server/api.d.ts:3690
1 to 64 products, each with its own threshold. Alchemy: threshold is the potion grade, 1 to 4, and maxYield the potions it makes, 1 to 64; the potion is an item the inventory holds, not a quest item. Smithing: threshold is the minimal workpiece quality percent, 0 to 100; the product is a melee weapon, armor that never changes condition, or a misc item, and not a quest item.
item:
string
maxYield?
Section titled “maxYield?”
optionalmaxYield?:number
threshold
Section titled “threshold”threshold:
number
recipeImage
Section titled “recipeImage”recipeImage:
string|undefined
Defined in: server/api.d.ts:3665
Alchemy: the recipe book’s recipe picture, a base64 PNG. Fitted onto a 1024x1024 square, as the game’s are.
steps:
CraftRecipeStepDefinition[] |undefined
Defined in: server/api.d.ts:3710
Alchemy, required: 1 to 28 steps.
usage:
string|undefined
Defined in: server/api.d.ts:3700
Alchemy: the recipe book’s usage text.
workpiece
Section titled “workpiece”workpiece:
"sword"|"longsword"|"axe"|"horseshoe"|undefined
Defined in: server/api.d.ts:3725
Smithing, required: the blank on the anvil.