class VillagerTradeAdditionConfig internal constructor( val tradeSet: ResourceKey<TradeSet>, )Configuration for a single trade to be appended to an existing [TradeSet] via [addVillagerTrade].
Fields map directly to the public VillagerTrade(TradeCost wants, Optional<TradeCost> additionalWants, ItemStackTemplate gives, int maxUses, int xp, float priceMultiplier, ...) constructor on MC 26.1.2 — every value here is plain enough to keep stable across patch releases.
VillagerTradeAdditionConfig.costItemId
var costItemId: Identifier?Item the merchant wants from the player.
VillagerTradeAdditionConfig.costBItemId
var costBItemId: Identifier?Optional secondary cost.
VillagerTradeAdditionConfig.resultItemId
var resultItemId: Identifier?Item the merchant gives back.
VillagerTradeAdditionConfig.maxUses
var maxUses: IntMaximum trade uses (vanilla farmer level 1 emerald-bread = 16).
VillagerTradeAdditionConfig.xp
var xp: IntVillager XP awarded per trade.
VillagerTradeAdditionConfig.priceMultiplier
var priceMultiplier: FloatVanilla price multiplier (0.05 default; matches farmer baselines).
