Trades Configuration
Trade configuration lets you decide what additional trades villagers can have.
Trade Creation
To create new custom villager trades head in the trades/ folder and add a yaml file named after the world you want your trades to be in. E.g. "survival_world_hard.yml" will make the trades configured within that file to only exist within the world named survival_world_hard.
Then add the villager profession name to let RPProfessions know which profession the villager should be in order to suggest a trade:
Villager Trades Configuration
Now you can add the configuration of each specific trade a villager can offer:
Options
The trades (in general) section has only one option.
Trades per level
The trades per level option specifies how many additional (the ones you configure) trades should be added everytime a villager gains a level. The amount can be a range, i.e. a random amount in that range will be chosen at every level up:
When a villager first picks up a new profession then that villager levels up from level 0 to 1.
The rest of the options are trade specific, i.e. these options must be within a trade configuration section (e.g. "IRON_TO_SWORD").
Chance
The relative or absolute chance for the trade to be chosen.
An integer value means the chance is relative and a non integer value means the chance is absolute.
The plugin chooses the trades as follow: Select 'trades-per-level' trades among the trades having a relative chance (one trade can be chosen multiple times but not displayed more than once) in the villager UI) and add trades having an absolute chance that "won the dice roll".
Or
Or
Level
The level at which the villager must be to offer the trade:
A value of 1 means the trade can be listed as soon as the villager gets the profession.
Max use
The maximum number of times players can use the trade before the villager runs out of that trade. When a villager runs out of a trade players must wait before using that specific trade for the villager to "replenish":
Villager experience reward
How many experience points the villager gets upon trading:
Player experience reward
Whether the player should get experience upon trading:
First ingredient, second ingredient and result
The configuration for the item needed as the first (leftmost trade slot) ingredient, the second (middle trade slot) ingredient and the result (rightmost trade slot) of the trade:
This can be a full item configuration as described in the Item Configuration page of this wiki as well.
Or an item from MMOItems:
Or an item from MythicMobs:
Or any RPProfessions item:
And lastly it is possible to set the item to any recipe pattern:
It is also possible to specify the amount of a pre-configured item:
Further combinations are shown below.
Full Example
Here's an example for a weaponsmith villager:
Last updated