[1.19+] Balanced Villager Trades icon

[1.19+] Balanced Villager Trades -----

Balance/customize villager trades




You can also download the update on GitHub
  • All recipes now apply to wandering traders as well
  • Added a new field merchant-type to check the entity type of the merchant (can be villager or wandering-trader)
  • Certain villager fields now return null or 0 if the merchant is not a villager
    • Only recipe-count, world and inventory fields return sensible values, because wandering traders apparently have inventories
An example of using the new merchant-type field:

trader:
desc: Quintuple the amount you get from all wandering trader recipes
when:
merchant-type: wandering_trader
do:
set:
result.amount: "*= 5"
----------, Oct 16, 2024

  • Fixed another exception when changing ingredients' amount (#15)
  • The nbt field on items is now no longer read-only. Additionally, it now properly returns the 1.20.5+ component format
  • Added max-stack-size and max-damage fields on items. They are only available on 1.20.5+
  • Ingredient splitting/combining should be more consistent now. In addition, ingredient-0.amount now returns the combined amount if the items are the same
  • Updated Lua type definition file
----------, Sep 4, 2024

  • Fixed an exception when accessing the second ingredient in newer versions
  • Random numbers can now be generated without Lua by using "random between <start> and <end>"
  • Added a new read-only "nbt" field on all items
  • Added a new "random(start, end)" function to Lua that uses a shared RNG for better randomness
----------, Aug 30, 2024

You can also view or download this update from GitHub
  • New enchantments field on items
  • Recipe warnings are now only shown when you run /bvt warnings
  • Added /bvt script for running Lua scripts
  • Added /bvt setfield/testfield for testing recipe behavior
  • Lua actions can now load from Lua files in the plugin folder (lua-file: script.lua will load plugins/BalancedVillagerTrades/script.lua)
  • Added chat color codes (colors), OS library and IO library (if you enable lua.allow-io in config.yml) to the Lua sandbox
  • Reputation nerf is no longer available on Spigot due to the increased maintenance cost
  • General bug fixes
----------, Aug 18, 2023

  • Added new fields index and new-recipe
  • Fixed a NullPointerException when running Lua scripts
----------, Jul 15, 2022

  • Added support for running Lua scripts as an action (see more information and this example)
  • Dropped support for older versions, now only supports 1.19
----------, Jul 6, 2022

  • Predicates are now based on the same system used to manipulate trades from the previous release
    • The old syntax is still supported
    • item types are now namespaced, see migration note in download page
  • new echo action to print properties to the console for debugging purposes
Code (YAML):
  when :
      # ...
   do
:
       echo
:
      - result.type
       - # other properties
  • replaced some NMS dependency with Paper integration (Spigot still supported, of course)
  • more properties (mainly villager.world for world properties)
----------, Aug 29, 2021

- allow matching items by enchantments
- improved the ability to manipulate items in trades
(see examples at https://github.com/jacky8399/BalancedVillagerTrades/wiki/Examples)
- made `/bvt reload` also reload recipes.yml
----------, Jul 25, 2021

- added 1.17 support
- added bStats
----------, Jun 22, 2021

  • Fixed java.lang.IllegalArgumentException
----------, May 19, 2021

This is a beta version
- Moved all built-in nerfs (except reputation nerf) into recipes.yml
- Added two new nerfs
- Disable diamond armor and tool trade discounts on armorers and toolsmiths
- Remove stone trade from masons (disabled by default; uncomment in recipes.yml)
- You can write your own trade changes now (documentation soon™)
----------, Apr 9, 2021

Resource Information
Author:
----------
Total Downloads: 1,910
First Release: Jan 9, 2021
Last Update: Oct 16, 2024
Category: ---------------
All-Time Rating:
11 ratings
Version -----
Released: --------------------
Downloads: ------
Version Rating:
----------------------
-- ratings