Trade Data
The villager trade customization component is reused across several JSON files within Resourceful Bees. It is responsible for defining the costs and rewards of certain trade items depending on which file it is used in. Not including a villager trade customization component prevents the associated items from being added to the pool of trades.
Below are the JSON files which can have a villager trade customization component and the trades they create.
When the component is used in a custom bee JSON, a filled bee jar will be added to the Level 5 trade pool.
Adding an empty villager trade component will add the trade to the pool using all default values.
Identifier
The root JSON of the villager trade customization component looks like this:
The identifier of the component is as such:
In custom honeycomb and honey JSON's the identifier is tradeData
:
Customization Options
amount
amount
The max amount of filled bee jars that can potentially be received in a single trade.
When trades are being populated, the amount actually used is a randomized value between the min and the max, therefore, not all trades will always have this amount.
Name: Amount
Key: amount
Type: UniformInt
Default: 1, 64
secondaryItem
secondaryItem
The item needed, when the trade requires a secondary item, in addition to golden flowers.
Name: Secondary Item
Key: secondaryItem
Type: ItemStack
Default: ItemStack.EMPTY
secondaryItemCost
secondaryItemCost
The max base cost for the secondary item.
When trades are being populated, the amount actually used is a randomized value between the min and the max, therefore, not all trades will always have this amount.
Name: Secondary Item Cost
Key: secondaryItemCost
Type: UniformInt
Default: 1, 4
priceMultiplier
priceMultiplier
When demand goes up, so does the price. Use this value to scale the price increase.
Most vanilla trades have a price multiplier of 0.05
Name: Price Multiplier
Key: priceMultiplier
Type: Float
Range: 0.00 - 1.00
Default: 0.05
maxTrades
maxTrades
The max number of trades that can be performed before a restock is needed.
Name: Max Trades
Key: maxTrades
Type: Integer
Range: 1 - 64
Default: 8
xp
xp
The XP awarded each trade.
Name: XP
Key: xp
Type: Integer
Range: 1 - 64
Default: 3
Last updated