Trade Object - SpaceCat97/SpaceCats-Wikis GitHub Wiki

JSON Specification

Field Name Data Type Required Description Default Value
offer Trade Item Object The item that will be given to the player when traded. This must always be provided unless you are using "multiOffer"
multiOffer Trade Item Object Array If this is defined it will replace the "offer" object above. This is an array of "Trade Objects" and the mod will choose from one of these when generating the trade. This allows for several variants of the same trade without adding to the weight (how common the trade is)
request Trade Item Object The item that will be taken from the player when traded (slot 1). This must always be provided unless you are using "multiRequest"
multiRequest Trade Item Object Array If this is defined it will replace the "request" object above. This is an array of "Trade Objects" and the mod will choose from one of these when generating the trade. This allows for several variants of the same trade without adding to the weight (how common the trade is)
additionalRequest Trade Item Object The item that will be taken from the player when traded (slot 2). This must always be provided unless you are using "additionalMultiRequest"
additionalMultiRequest Trade Item Object Array If this is defined it will replace the "additionalRequest" object above. This is an array of "Trade Objects" and the mod will choose from one of these when generating the trade. This allows for several variants of the same trade without adding to the weight (how common the trade is)
tradeExp Whole Number The amount of experience the villager will gain for this trade
maxUses Whole Number The number of times this trade can be done before requiring the villager to restock false
priceMultiplier Decimal Number Check out the Minecraft Wiki for an explanation on how multipliers work 0.05
demand Whole Number Check out the Minecraft Wiki for an explanation on how demand works 0
tradeLevel Whole Number The villager level that this trade belongs to. You can only specify 1-5 (inclusive) unless you have a mod that changes this
UTID String The Unique Trade ID. This is used to identify the trade in commands. If undefined it will auto-generate on mod load
isRare boolean This is only for the wanderer and will have no effect on other trades. By default the wanderer generates with 5 common and 1 rare offers false

⚠️ **GitHub.com Fallback** ⚠️