- check_circle Functions
- check_circle Loot Tables
- check_circle Predicates
- 18,206 views, 20 today
- 1,706 downloads, 0 today
108
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 simple datapack that solves this issue by adding a few small things.
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: Villager's Enchanted Book trades are random up to Level 3. You need to use the new custom trade mechanic to get a Level 4 or 5 trade, so first obtain this book as an item. I recommend combining two enchanted books on an Anvil to upgrade its level, or use one you found in the world.
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). This datapack works great with the Villager Rebalance experimental feature from Mojang!
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:config
Alternatively, edit [ settings.mcfunction ] in the folder [ data > libal > functions ] (datapack only).
--
This project is on Modrinth and is open-source.
Credit | gibbsly |
Compatibility | Minecraft 1.21 |
Tags |
16 Update Logs
Update #3.7c : by Misterk7_- 05/10/2025 4:48:43 pmMay 10th
Fixed several bugs with the original release for 1.21.5. Sorry.
- Fix 'Sealed' book text being broken
- Fix Config menu
- Book filtering now works again (ex. limiting trades to <3)
Sorry for all the bugs :p
- Fix 'Sealed' book text being broken
- Fix Config menu
- Book filtering now works again (ex. limiting trades to <3)
Sorry for all the bugs :p
LOAD MORE LOGS
5848929
119
Create an account or sign in to comment.
Not something I'd use, but superior to MS/Mj's biome based version. 👍
[On a technical note:
Does this pack do anything to treasure fishing? (Somewhat implied by the comments about Mending)
Will villagers acceopt books with multiple enchantments? and – if they do – what happens?]
I'm interested why you wouldn't want to use this datapack? I'm biased of course XD!
Given that it would appear to allow one to set up librarians for Mending/Unbreaking3 or Efficiency5/Fortune3, however, I might reconsider when I move to 1.21.
I need to do a better analysis, but this could shift your pack from a straight nerf to a change that arguably upgrades lategame availability while lowering high end enchants in early game.
My preferred playstyle focuses on designing and building resource farms [my current most freqeuntly played world has at least four creeper based gunpowder farms each of different design].
As an aside: it is my impresion is that it was the 1.14 changes that broke the system (5/6ths being potential librarians, and the ability to reset 1st level trades until one got something wanted).
I also have an essentially complete suite of librarians (probably not including things like power1 & 2) so any changes would effect only new worlds [presumably].
Another question:
Do the pack villagers also accept SoulSpeed, SwiftSneak, and WindBurst? [I would guess yes from what else they take…]
Also technically blacklisting books is an entirely different system. Sorry about this process being kinda complicated, I will try to make this easier in the next versions.
Edit: I've added an extra config option for this functionality now