Updated on , 4/13/26 4:21 pm | 20 logs
Published , 2/7/23 12:15 pm
Published , 2/7/23 12:15 pm
- 22,095 views • 2 today
- 1,910 downloads • 0 today
- Compatibility
- Minecraft 1.21
- Changes include
- Functions
- Loot Tables
- Predicates
Added Creditgibbsly
111
The issue...
Librarians in Minecraft are tedious and unbalanced. It's too easy to obtain powerful enchantments that should reflect your dedication to the game. And rerolling trades is not a fun or engaging way to obtain them at all.
I thought this part of Minecraft really needed a rebalance, so this is what I came up with.
Introducing: Librarian's Balance
Librarian's Balance is a datapack / mod that improves the progression of obtaining enchantments through villagers. It does this by adding a mechanic to librarians that gives you the ability to save a set of enchantments into their trade by placing an enchanted book on to their lectern, allowing you to buy back a copy using emeralds that’s priced on how valuable the enchanted book is. For example, I could create a book with Efficiency 4 and Unbreaking 3 to buy from my villager (for 72 emeralds) when I need it, or buy back an enchantment to combine into itself and upgrade it to a much higher level.
A breakdown of this mechanic in more detail is below...
Featuring...
1. Customisable Trades: Place an Enchanted Book on a Librarian's Lectern, and their first or second book trade will change to the one you entered. This gives new purpose to the books you collect in the world. Some books are treasure enchantments and these will produce untradable (sealed) variants when bought from a Librarian in this way.
2. Limit Random Trades: Librarian enchanted book trades are only random up to Level 3 by default. To obtain a Level 4 or 5 trade, you need at least one book of the enchantment type of your choice. Then buy another using the custom trade mechanic, combine them in an anvil to increment its level, and repeat.
3. Rare Mending: Librarians do not trade for Mending so players will have to find it in the world. Once obtained, you can put it on a Librarain's Lectern to trade for more. It can be found in End Cities or Ancient Cities common as an armour trim.
Everything listed here can be toggled or configured with the [ /function libal:config] command (must be run as an OP). It also changes loot tables, so if you don't want that delete the 'loot_table' folder inside the pack. This datapack works great to enhance the Villager Rebalance experimental feature from Mojang! (not required)
Uses
On Survival Multiplayer servers you may find enchantment progression too quick by some members of the server. Librarian's Balance provides a balanced progression system by use of experience points, emeralds, and requiring a proper level of exploration.
Feedback:
Please give feedback on the GitHub page or on my Discord server! I'm interested in hearing your ideas, opinions or suggestions from your time with this datapack. What do you think about the sealed books system? Do you think that the book pricing is appropriate?
Notes:
You might see the UI show a mending or >3 enchantment sometimes, but it's just a visual hitch and you should ignore it. Any mod that re-rolls trades besides reopening the Villager GUI will not filter their trades. This is my first datapack, so I'd appreciate any feedback or contributions.
If you're playing modded and are having issues, try running [ /function libal:load ].
I built this datapack upon parts of gibbsly's Lectern Enchanting. I want to thank him for providing a starting point for this project, and for some of his tutorials on YouTube. Otherwise I would have had no idea on where to start making something like this :).
Configuration
To configure Librarian's Balance in-game run as an OP:
/function libal:configAlternatively, edit [ settings.mcfunction ] in the folder [ data > libal > functions ] (datapack only).
--
This project is on Modrinth and is open-source.
20 Update Logs
Update #3.9 : by Misterk7_- 04/13/2026 4:21:00 pmApril 13 @ 8:21 pm UTC
Added features that should help guide new players. This helps with accessibility on large servers. Toggleable.
- Verbose Mode: When a Mending trade gets filtered out, send a message to guide the player into an End or Ancient City instead. Enabled by default and can be disabled in the settings. Useful for when the pack is enabled on a large server.
- When a villager has no initial book trade to swap a new one into, send a subtitle explaining why they can't accept the trade in addition to showing the angry particles.
LOAD MORE LOGS
5848929
119








Have something to say?