How to create Custom Trades
Our guide on how to create custom trades on your server.
#1. Use template to start off your own trade
Trades.yml file (located in your server folder -> plugins -> AdvancedTrades folder) has 2 trades by default. You can add your own trade by pasting this example to your file:
#2. Trade Settings Configuration
Firstly you can change your trade name. In the example above, it's changeable in 'tradeName'
part. Change this tradeName to anything else, e.g. villagerTrade6.
Under trade settings, you can configure:
chance
- change the chance of this trade appearing in villager trades
#3. Trade Ingredients Configuration
Under trade ingredients, you can configure items required for a trade. In vanilla minecraft, it's usually emeralds + another item which turns into traded item. E.g. emeralds and a book, which then can be traded for an enchanted book. You do not need to follow this format.
You are not required to have 2 items either. Maximum is 2, minimum is 1.
#4. Trade Result Configuration
Trade can result either in item being awarded upon a trade or a command. Alongside this, you can also give the villager experience, which may level the villager up.
Configuration for awarding items:
Configuration for commands:
With AdvancedTrades, you can trade custom commands instead of items. Though, the rewarded item will still be displayed just as a display only, won't be traded. You can use this item to explain the reward to user as they won't be able to see what command they are trading for.
Last updated
Was this helpful?