How to Make a Villager Trade in Minecraft (Mod Maker guide)

Learn how to add custom offers to villager professions using the browser-based 9Minecraft Mod Maker. Follow these easy steps to set up prices, rewards, and experience.

  1. Open the Studio and your workspace

    Open 9Minecraft Mod Maker directly in your web browser. You do not need to download or install anything.

    Create a new workspace or open an existing one. Make sure your workspace is set to one of the supported versions: NeoForge 26.1.2, NeoForge 1.21.1, or Data pack 26.1.

  2. Add a new Villager trade element

    Click the green plus button to add a new mod element to your workspace.

    Look in the Mobs & entities group and select the Villager trade element. Give your new trade a name to open the editor.

  3. Choose the profession and trade category

    Start by setting the Profession field. This parameter controls which villager profession can offer the trades.

    Next, look at the Trade category field. This controls which group of trades your offer can appear in. Choose Common for trades with a higher chance of appearing, or Uncommon for trades with a lower chance of appearing. You can also select Buying for trades in which the wandering trader buys items, which is used in Minecraft versions 26.1 and above.

  4. Set the required level

    Find the Max enchantment level field in the editor.

    Set the value for this field to define the minimal level required for the Villager to offer the trade.

  5. Pick the prices and the offered item

    Now it is time to decide what the trade costs. Use the Price 1 field to pick the first item required by the trade. If you want the trade to require two items, fill in the Optional price 2 field for the second item.

    Next, choose the reward by selecting an item in the Offered item field. This is the item you obtain as a result of the trade.

  6. Adjust trade limits, multiplier, and XP

    Set the Max trades field to control the maximal number of this trade the Villager can do without recharging itself.

    Fill in the Price multiplier field. This defines the price increase when the player trades the same item multiple times.

    Finally, set the XP given to villager field to decide the number of experience the Villager gets from the trade.

  7. Test and export your mod

    Save your element. You can now test your new trade by clicking the Build & run button in the studio.

    When you are happy with how the trade works, export your project to use it in your game.

Tips

Try it in the Studio All villager trade fields explained →