All projects

VillagerRebalance Plugin

Keeps villager trading useful without the usual exploits. Each part can be turned on or off.

What it does

  • Discount cap: curing zombie villagers, Hero of the Village and reputation can lower a price by 30% at most.
  • Rare books: a librarian's new Mending trade is only kept 15% of the time. Other enchantments can be added.
  • No lectern rerolling: a villager that loses its job waits 10 minutes before it can take a new one.
  • No trading halls: villagers shut in a small cell, a minecart or a boat refuse to trade.
  • Optionally, villagers also need a bed to trade.
  • Messages appear in each player's game language: English, Italian, German or French.

Commands

CommandWhat it does
/vrebalance reloadReload the config and the language files.

Permissions

PermissionAllowsGiven to
villagerrebalance.adminUse /vrebalanceoperators
villagerrebalance.bypassTrade even with caged villagersnobody

Settings

The main options in plugins/VillagerRebalance/config.yml. Every option is explained inside the file.

discount-cap.max-discount
Largest discount. 0.30 = 30% off at most.
discount-cap.min-price
Lowest price in emeralds.
rare-books.chance
Chance to keep each enchantment on a new trade. mending: 0.15 by default.
job-change-cooldown.seconds
Wait before a villager can take a new job. Default 600.
caged-villagers.min-free-space
How many spots a villager must be able to walk to. Default 6.
caged-villagers.require-bed
Villagers also need a bed to trade.

Good to know

  • Existing trades get the discount cap right away. The rare-books rule only applies to new trades.