Alpha: this compiler is under active development and updates will break your projects. Not recommended for real use yet.
Skip to content

helix / RecipeFields

Interface: RecipeFields โ€‹

Defined in: core/values/entities.generated.ts:1660

Properties โ€‹

buy? โ€‹

optional buy?: 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? โ€‹

optional buyB?: NbtInput

Defined in: core/values/entities.generated.ts:1670

Second item required by the merchant, count does not change.


demand? โ€‹

optional demand?: 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? โ€‹

optional maxUses?: number

Defined in: core/values/entities.generated.ts:1664

Maximum number of uses for this trade before the merchant has to restock.


priceMultiplier? โ€‹

optional priceMultiplier?: number

Defined in: core/values/entities.generated.ts:1676

How much demand & reputation each affect the count of the buy item.


rewardExp? โ€‹

optional rewardExp?: 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? โ€‹

optional sell?: NbtInput

Defined in: core/values/entities.generated.ts:1672

Item being offered by the merchant.


specialPrice? โ€‹

optional specialPrice?: number

Defined in: core/values/entities.generated.ts:1678

Modifier added to the original count of the buy item.


uses? โ€‹

optional uses?: number

Defined in: core/values/entities.generated.ts:1666

Times this trade has been used since the merchant last restocked.


xp? โ€‹

optional xp?: number

Defined in: core/values/entities.generated.ts:1674

XP the merchant gains from the trade.

Released under the MIT License ยท Credits
These docs were written with AI; the layout and every page have been reviewed by a human.