Back to 9Minecraft
Wiki 9Minecraft Wiki 9Minecraft
Villager Trade Tables Mod Wiki › Guides › Customizing Trades

Customizing Trades

The core of the mod is the Offers array, which contains individual trade definitions. Each trade uses an action key to determine how it interacts with the villager's existing trade pool.

Adding Trades

To add a new trade, use the "action": "add" command. You must specify the CareerLevel and the items involved in the transaction.

Removing Trades

To remove a vanilla or modded trade, use "action": "remove". This is particularly useful for balancing modpacks by removing overpowered trades or items that bypass progression.

Property Description
action Either add or remove.
CareerLevel The level (1-5) at which this trade becomes available.
buy The primary item the villager wants from the player.
buyB (Optional) A second item the villager wants.
sell The item the villager gives to the player.
Chance (Optional) The decimal probability (0.0 to 1.0) of this trade being selected.