Appearance
helix / RecipeFields
Interface: RecipeFields โ
Defined in: core/values/entities.generated.ts:1660
Properties โ
buy? โ
optionalbuy?:NbtInput
Defined in: core/values/entities.generated.ts:1668
Price item required by the merchant, count is modified depending on demand & per-player context.
buyB? โ
optionalbuyB?:NbtInput
Defined in: core/values/entities.generated.ts:1670
Second item required by the merchant, count does not change.
demand? โ
optionaldemand?:number
Defined in: core/values/entities.generated.ts:1680
Count adjuster of the buy item based on demand. Minus twice the number of times the villager has the trade in stock. When restocking subtract the number of possible purchases before running out of stock and add twice the number of actually made purchases. When the demand becomes positive, the count is increased by the initial count times priceMultiplier times the demand.
maxUses? โ
optionalmaxUses?:number
Defined in: core/values/entities.generated.ts:1664
Maximum number of uses for this trade before the merchant has to restock.
priceMultiplier? โ
optionalpriceMultiplier?:number
Defined in: core/values/entities.generated.ts:1676
How much demand & reputation each affect the count of the buy item.
rewardExp? โ
optionalrewardExp?:boolean
Defined in: core/values/entities.generated.ts:1662
Whether it should reward experience for using this trade. Experience amount is 3 + random(0, 3) plus 5 if the trade is causing the merchant to increase in tier.
sell? โ
optionalsell?:NbtInput
Defined in: core/values/entities.generated.ts:1672
Item being offered by the merchant.
specialPrice? โ
optionalspecialPrice?:number
Defined in: core/values/entities.generated.ts:1678
Modifier added to the original count of the buy item.
uses? โ
optionaluses?:number
Defined in: core/values/entities.generated.ts:1666
Times this trade has been used since the merchant last restocked.
xp? โ
optionalxp?:number
Defined in: core/values/entities.generated.ts:1674
XP the merchant gains from the trade.