Custom Villager Trades icon

Custom Villager Trades -----

Add custom trades that villagers can acquire just like Vanilla Minecraft trades



1.1-SNAPSHOT
BREAKING CHANGE

The trades.yml has been redesigned. It is no longer a list. Each trade is it's own object with a unique key to identify it with.
Code (YAML):

"spongeForDiamonds"
: <custom trade>
"anotherCustomTrade"
: <custom trade >
...
 
This will require you to change your current trades.yml file so that each trade has a unique key. Also make sure to remove the trades: list name at the top of the file, and check all of your indentation.

This is unfortunately the nature of SNAPSHOT releases before the first full release (expected to be v1.3), so please bear with me as there may be more changes in the future until the first full release.

NEW FEATURES

- The ability to /reroll custom villager trades. You can either use the tool specified in the config.yml (default is a CLOCK) to RIGHT CLICK on a villager to reroll all of their custom trades, or use the /reroll [all|radius] command to reroll multiple villagers (will only reroll villagers on the current world).

- The ability to /restore custom villager trades back to their original Vanilla Minecraft trades. This is done similar to the /reroll mechanics by either pressing SHIFT + RIGHT CLICK on a villager with the tool, or using the /restore [all|radius] command.

Please note that custom villager trades created (acquired by a villager) before this update will be considered Vanilla Minecraft trades, this means you may also get duplicates even if allowDuplicateTrades is set to false as it wont recognise previous custom trades (sorry for any inconvenience).

- New permissions have been added for the /reroll and /restore commands, as well as for using the tool to either /restore or /reroll.

- The attributeModifiers field has been added to the <custom trade> object. You can now add a list of <attribute modifiers> that have the structure (see the README.md of the release to learn more):
Code (YAML):

name
: <attribute>
amount
: <number>
operation
: <attribute modifier operation>
slot
: <equipment slot >
----------, Jan 31, 2022
Resource Information
Author:
----------
Total Downloads: 6,502
First Release: Jan 27, 2022
Last Update: Mar 9, 2022
Category: ---------------
All-Time Rating:
5 ratings
Find more info at github.com...
Version -----
Released: --------------------
Downloads: ------
Version Rating:
----------------------
-- ratings