Custom Villager Trades
1.11-SNAPSHOTAdd custom trades that villagers can acquire just like Vanilla Minecraft trades
1.11-SNAPSHOTlatesthttps://github.com/Reldeam/CustomVillagerTrades/releases/download/v1.11-SNAPSHOT/customvillagertradeMar 9, 2022 Changes · Updated to Spigot API 1.18.2.R0-SNAPSHOT1.10-SNAPSHOT1.10-SNAPSHOT - Enhancements · Changes · Bug FixesMar 1, 2022 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 cvtenable1.9-SNAPSHOT1.9-SNAPSHOT - Enhancements · Bug FixesFeb 10, 2022 Enhancements · Add lore to money item to explain how to deposit it · Change forget condition for level to be less than instead of contains Bug Fixes · Error on reroll with no custom trades available1.8-SNAPSHOT1.8-SNAPSHOT - Performance UpdateFeb 9, 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.1.7-SNAPSHOT1.7-SNAPSHOT - Added worlds Filter · Added villagersForgetInvalidCustomTrades Config · Bug FixesFeb 7, 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 · Add world property support · Shift-Click blueprint to remove custom trade · villagersForgetInvalidCustomTrades property BUG FIXES · Custom Trade Config page shows when opening in-game editor with no custom trades loaded · Using blueprint on a wandering trader causes uncaught error See more details here: Release 1.7-SNAPSHOT · Reldeam/CustomVillagerTrades (github.com)1.6-SNAPSHOT1.6-SNAPSHOT - In-game Editor · Blueprints · Bug FixesFeb 5, 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).1.5-SNAPSHOT1.5-SNAPSHOT - Added priceMultipler · Added Plugin Update Notifications · Bug FixesFeb 3, 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 · Fixed Bug - Trade uses keep refreshing1.3-SNAPSHOT1.3-SNAPSHOT - Vault SupportFeb 2, 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.1.1-SNAPSHOTJan 31, 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 >1.0-SNAPSHOTChange Github tagJan 27, 2022 I had to change the Github tag to match the plugin version.
Similar projects
Plugin →Let Me Despawn
Improves performance by tweaking mob despawn rules. Say bye to pesky unintentional persistent mobs.
26.2MSueta
JourneyMap
Real-time map used for mapping in-game or your browser as you explore.
15.6MSueta
Emotecraft
Create your own emotes in Minecraft.
7.9MSueta
Simple Tpa
A simple tpa plugin which sends requests
5.4MSueta
Common Network
Forge and Fabric Unified Networking Solution
4.7MSueta
Set Home
A lightweight plugin for players to set their homes.
3.8MSueta