RUN THIS BEFORE UPDATE>>>> /execute as @e[type=villager,tag=trader] run function libal:villager/librarian_remove
Updated to 1.20.5! This update took a ton of effort since Mojang replaced the NBT system with components. Run the command before updating or else your librarians will lose their default enchantments! For modded, please note that custom enchantments will not work with villagers for the time being. Vanilla shouldn't notice much change. Read for more details:
Additions
- More enchantments get valued expensively
- Channeling, Aqua Affinity, and Silk Touch at 48 Emeralds
- Flame, Infinity, and Multishot at 38 Emeralds
Changes
- Configuration menu has been simplified
- It was so complex that it kicked you out the game for interacting with it
- Emerald pricing has been tweaked
- Lvl 4 Enchants will cost 38 emeralds, guranteed.
- Lvl 5 Enchants will cost 48 emeralds, down from 64/58.
- Removed 'Mending' from Sealed books list.
- After testing, I think it should be up to the player to decide if they want to share it or not.
- Soul speed and swift sneak will remain sealed; one is gained from piglins and the latter is a reward.
- Books with more than one enchantment
- Before it would select the enchant at the top of the list.
- Now, it will choose it by order of importance. This is because of the component changes.
Removed
- Support for non-vanilla enchantments
- Due to the component changes and the way I add enchantments to the villager trade, I can't filter non-vanilla enchantments. I already have an idea for how I will fix this though, so follow to get notified for version 3.0 which will be the next update to this pack.
- Infected librarians keep their custom book trade. (fix)
- Max_level_enchant option because of component changes & simplicity
HOTFIX: Fixed an issue where the config menu didn't toggle options on or off, and the options command executes at the executor now.
A minor release to librarian's balance that adds a new configuration option, loot tables, tweaks, and fixes some bugs.
Additions
- Merged 'Villager Rebalance' Pillager & Mineshaft loot tables.
- Increased chance of getting books with Efficiency in Mineshafts
- Increased chance of getting books with Quick Charge in Pillager Outposts
- You can always delete the loot table changes by removing the 'loot_tables' folder in data > minecraft (datapack)
- Ability to modify 'sealed books' enchantments list in configuration menu.
- 'Villager Rebalance' compatibility message added
- If you have villager rebalance installed alongside librarian's balance, a message will tell you that no_mending has been disabled (the inability to get mending from villagers). This is because mending is exclusive to swamp villagers in the experimental feature. You can turn it back on from this notification.
Changes
- Tweaked the chances of generating Mending books in Ancient cities.
- Silk Touch has been removed from sealed book trades
- The sealed books feature is a little bit experimental but it should stay simple. Silk Touch was never a treasure enchantment.
- Fixed a bug where sealed books couldn't be toggled off.
- Fixed a typo in the configuration menu
Important note about 1.20.5: I want to update librarian's balance to the next version of Minecraft, however with their component change to items they also changed the format of enchantments storage to be way more complicated than it should be. I reported it to Mojang here, so please vote for it if you can. This may or may not affect how quickly I can update it.
The biggest release yet! I have polished this datapack and added features that should balance villagers even more on survival multiplayer servers, including 'sealed' books, blacklisted books, and a configuration GUI!
Additions
- Added a configuration menu
- This makes configuration so much easier. Run
/function libal:options
as a server OP to change all settings of the datapack. Note: options reset every time/reload
is run, so consider permanent changes in thesettings.mcfunction
file. - Every major addition including the ones listed here can be configured or turned off.
- This makes configuration so much easier. Run
- Added Sealed Books
- If the traded book is a treasure (ex. soul speed, mending, + incl. silk touch) it will produce a 'Sealed' variant. These cannot be read by librarains but can still be used on your gear, which could lead to an interesting stockpile experience with your server mates.
- Added Blacklisted books
- If you don't want some books to be read by villagers at all, add it to a blacklist via the configuration menu.
- Mojang's Villager Rebalance Datapack support
- It's supported by turning the removal of Mending from default trades off, because of how it is designed there.
Changes
- All levels of books are now valued on Emeralds in trading
- This means when you put in a Lvl 1, 2 or 3 book they will each be valued at a respective Emerald price.
- If you put in the same book that a Villager is already trading for, the price will not change.
- Mending & Silk Touch will always be valued high
- Renamed CONFIG.txt to README.txt
- Improved particles & sound effects
- Various optimisations
I am really passionate about this datapack and I highly appreciate everybody who uses it. I am planning to release a YouTube video that showcases my changes in a consumable format. So if you've read through all this and understood them all, thank you!
This is the third release to Librarian's Balance, sorry it took so long.
- Updated for 1.20.2, 1.20.3 and 1.20.4.
- Made configuration easier to understand.
To configure Librarian's Balance in game, follow the commands:
This command changes whether or not Mending should be removed from default trading.
/scoreboard players set no_mending libal.main 1
1=YES, 0=NO.
This command changes whether or not default trades should be capped.
/scoreboard players set cap_enchant_level libal.main 1
1=YES, 0=NO.
This command changes the level cap to villager default trades.
/scoreboard players set cap_enchant_level libal.main 3
CHANGE NUMBER TO YOUR LIKING.
Librarian's Balance v1.2 for Minecraft 1.20.
- Updated interact.json advancement to fit with new conditon
- Updated loot tables for 1.20
This release is the second update for Librarian's Balance containing a couple fixes and additions:
-
Books traded no longer carry redundant data, including how many times it was used which bloated the combination cost.
-
Books with more than one enchanment no longer carry all of them when trading.
-
You can now find Mending books in End Cities.
- Enchantments above a Level 3 get priced appropriately when entered for trading.
Lvl 4: 34 or 38 emeralds.
Lvl 5: 64 or 58 emeralds.
- Loot tables have now been placed into the correct data file. Previously loot tables were not working. sorry!
Release