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 constructor on supported MC 26.x versions: primary and optional secondary costs, result, maximum uses, XP, and price multiplier. These values remain stable across the supported versions.
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 number of times the trade can be used.
VillagerTradeAdditionConfig.xp
var xp: IntVillager XP awarded per trade.
VillagerTradeAdditionConfig.priceMultiplier
var priceMultiplier: FloatVanilla price multiplier (0.05 default; matches farmer baselines).
