Custom Villager Trades icon

Custom Villager Trades -----

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



cvt banner.png
Create custom trades that villagers can acquire
Just like Vanilla Minecraft trades

About

  • Allows you to create a pool of custom villager trades that can be acquired by traders just like they acquire Vanilla Minecraft trades.​
  • This plugin doesn't effect pre-existing villager trades (you can disable Vanilla Minecraft trades so villagers stop acquiring them).​
  • Compatible Minecraft version >= 1.18
  • I'm not providing backwards compatibility at this point.

THIS IS A SNAPSHOT RELEASE - There might be bugs! If you run into any unforeseen issues, please let me know by opening an issue. It is much appreciated! :)

cvt custom trades.gif

Features

Make Custom Villager Trades
  • Make custom trades for any item in the game (villagers can acquire these trades just like they acquire their Vanilla Minecraft trades).
  • Make the trade cost any item(s) (not just emeralds).
  • Give enchants, custom names, attributes, and lore to items.
  • Add restrictions to villagers being able to acquire a custom trade, such as their type, profession, level, biome or even the world they are in.
  • Choose whether villagers forget custom trades if the conditions for that trade stop being met (i.e. if a villager needs to be in a biome but leaves the biome).
  • Set the amount of experience the villager and player get from a trade, or prevent the player from getting any experience at all.
In-game Editor
  • 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.
[​IMG]
  • The editor includes Blueprints which allows you to apply any custom trade you want to a villager by using RIGHT-CLICK on them with the corresponding blueprint.​
[​IMG]

Auto-Refreshing Custom Trades

  • Reload the plugin (or save changes made in the editor) to update the custom trades without restarting the server.
  • Custom trades will update automatically on all villagers based on the custom trade's unique ID.
Reroll and Restore Trades
  • Reroll custom trades for specified villagers using an in-game tool or command.
  • Restore all Vanilla Minecraft trades for specified villagers using an in-game tool or command.
Vault Support
  • You can enable economy features by setting enableEconomy to true. This requires Vault and a compatible Economy plugin.

    → Get Vault Here
  • You can create money within the in-game editor to create trades with, or replace any <item stack> value in the trades.config with: money: <double>
  • 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.
Setup
Please read this for more details on how to create custom trades.

Commands
command: /customvillagertrades:reload
alias: /cvtreload
description: Reloads all configuration files including trades.yml

command: /customvillagertrades:enable
alias: /cvtenable
description: Enables plugin (if previously disabled)

command: /customvillagertrades:disable
alias: /cvtdisable
description: Disables plugin (does not remove any previously acquired custom trades, it just stops new custom trades being acquired)

command: /customvillagertrades:editor
alias: /cvteditor
description: Opens the in-game editor

command: /customvillagertrades:reroll [all|radius]
alias: /cvtreroll
description: Reroll all of the custom trades for villagers on the current world within a given radius (or all villagers with by stating all)

You can also RIGHT CLICK on a villager using the tool specified in the configuration file to reroll a particular villager's custom trades.

command: /customvillagertrades:restore [all|radius]
alias: /cvtrestore
description: Restore all of the Vanilla Minecraft trades for villagers on the current world within a given radius (or all villagers with by stating all)

You can also SHIFT + RIGHT CLICK on a villager using the tool specified in the configuration file to restore a particular villager's Vanilla Minecraft trades.

Permissions
permission: customvillagertrades.command.reload
description: Allows user to run command /customvillagertrades:reload

permission: customvillagertrades.command.enable
description: Allows user to run command /customvillagertrades:enable

permission: customvillagertrades.command.disable
description: Allows user to run command /customvillagertrades:disable

permission: customvillagertrades.command.editor
description: Allows user to run command /customvillagertrades:editor

permission: customvillagertrades.command.reroll
description: Allows user to run command /customvillagertrades:reroll

permission: customvillagertrades.command.restore
description: Allows user to run command /customvillagertrades:restore

permission: customvillagertrades.item.reroll
description: Allows user to use the item specified in config.yml to reroll a villagers custom trades.

permission: customvillagertrades.item.restore
description: Allows user to use the item specified in config.yml to restorea villagers custom trades.
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