Custom Villager Trades icon

Custom Villager Trades -----

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





Features
  • Added language support
  • If vanilla trades are disabled they will be automatically removed when interacting with any villager now.
Changes
  • Default maxUses when creating a new custom trade with the in-game editor is set to 1 (0 -> 1)
Bug Fixes
  • configuration now reloads correctly when using /cvtreload and cvtenable
----------, Mar 1, 2022


Performance Update
  • The villager data is now saved on a per-villager basis. This eliminates the need to have all of the villager data loaded in memory. This allows for scaling of the number of villagers without effecting server performance.
  • If you have a previous data file, it will be automatically converted and delete upon first load of this update.
----------, Feb 9, 2022

BREAKING CHANGE
  • The village data structure has been changed. This means that some pre-existing custom trades may be considered vanilla trades now. If you cannot refresh/reroll certain trades for particular villagers any more, this is probably why.
  • It is likely that this will be the last breaking change to be made (though I can't guarantee it).

NEW FEATURES

BUG FIXES
See more details here: Release 1.7-SNAPSHOT · Reldeam/CustomVillagerTrades (github.com)
----------, Feb 7, 2022

New Features
  • Added an in-game editor, which can be opened with command /cvteditor (requires customvillagertrades.command.editor permission to use). The editor allows you to create, edit, and delete custom trades.
  • The editor includes Blueprints which allows you to apply any trade you want to a villager by using RIGHT-CLICK on them with the corresponding trade blueprint.
Bug Fixes
  • When switching between trades that used money as an ingredient, the cost was being deducted from the players account without reimbursing the player for the previous trade's ingredient(s).
----------, Feb 5, 2022

New Features
  • priceMultiplier field added to <custom trade> objects in the trades.yml. The priceMultiplier effects how much the cost of a trade changes depending on factors like how much the villager likes or dislikes you, or how much you have traded with that villager recently.
  • Added a plugin update notification when the server is first started to tell you if there is a new update available for this plugin.
Bug Fixes
----------, Feb 3, 2022

NEW FEATURES

Vault Support
  • Vault support added. You can enable economy by setting enableEconomy to true. This requires Vault and an compatible Economy plugin.
  • You can replace the <item stack> value in the trades.config with: money: <double>
  • I've made it so that money acts like regular items for trading.
  • If you set enablePhysicalCurrency to true, then you can pickup money from the trade UI just like a normal item. The money can be deposited into your account at any time by pressing the DROP (default set to Q) key while hovering over the money item in your inventory.
Automatic Custom Trade Refreshing
  • CustomTrades are now refreshed based on their unique key. That means that if you make a change to a custom key in the config, it will be reflected on all villagers that have that custom trade in the game.
  • Note that and villagers that have custom trades before this update will not have their custom trades refreshed (they will be considered vanilla trades for refresh purposes).
Disable Vanilla Trades for Certain Professions
  • If you only want to disable trades for certain professions you can choose which ones setting a list of disabled professions in the the disableVanillaTradesForProfessions field of the config.yml. Note that disableVanillaTrades must be set to false for this to work.
Checkout the README.md for more information.
This is the updated config.yml with the new options added.
And finally, this is the updated trades.yml with a lot more examples including using the new <money> option.
----------, Feb 2, 2022

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

I had to change the Github tag to match the plugin version.
----------, Jan 27, 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