VTL ~ VillagerTradeLimiter [1.14.1 - 1.20.1] icon

VTL ~ VillagerTradeLimiter [1.14.1 - 1.20.1] -----

~ Fix those pesky OP villager discounts! ~



1.4.0 ~ 1.18 support & new features
Thank you for your patience as I was finishing exams!
This update provides support for 1.18 and 1.18.1, as well as a couple new features and bug fixes.
I would like to thank @Jowcey for making a pull request where he added these features and 1.18 support!



FIX ~ Config updater was broken, and would mess up config.yml when people update to a new plugin version. This has been fixed, thanks to the code provided by tchristofferson on Github.



FEATURE 1 ~ Set the maximum number of uses for a trade, which is the number of times a player can make a trade before it is out of stock, with MaxUses. The following example will limit players to only buying 1 mending book per restock (2 per day):
Code (YAML):
Overrides:
  mending_1
:
    MaxUses
: 1


FEATURE 2 ~ Set the price and currency for the cost of a trade, which is configurable for both ingredients (left and middle items shown in a trade). The currency can be set for each item using Item1.Material and Item2.Material, and the price can be set for each item using Item1.Amount and Item2.Amount in config.yml. The following example will change the cost of mending book trades to 64 diamonds + 32 books:
Code (YAML):
Overrides:
  mending_1
:
    Item1
:
      Material
: "diamond"
      Amount
: 64
    Item2
:
      Material
: "book"
      Amount
: 32

~~~
Happy holidays and THANK YOU for using VTL!
~~~
----------, Dec 15, 2021
Resource Information
Author:
----------
Total Downloads: 13,199
First Release: Dec 29, 2020
Last Update: Jun 29, 2023
Category: ---------------
All-Time Rating:
32 ratings
Find more info at github.com...
Version -----
Released: --------------------
Downloads: ------
Version Rating:
----------------------
-- ratings