How to get Mending in Minecraft: use a librarian villager — put an unemployed villager next to a lectern, check its trades, and break and replace the lectern until an enchanted book with Mending shows up, then trade once to lock it. Mending is a treasure enchantment, so it can never come from an enchanting table. Every other route — fishing, loot chests, the opt-in Villager Trade Rebalance — is slower or situational.
Why bother? Mending repairs an equipped, damaged item by 2 durability for every point of experience you pick up, which is what lets Mending gear last as long as you keep collecting XP. Everything below is checked against the Minecraft Wiki for Java 26.3, released September 15, 2026.
How to Get a Mending Villager in 4 Steps
- Put an unemployed villager next to an unclaimed lectern.
- Open its trades and look for an enchanted book that is Mending.
- No Mending? Break the lectern and place it again — the villager loses the job and rolls a brand new trade set when it reclaims it. Repeat.
- When Mending shows up, make that one trade. A completed trade locks the villager's offers permanently.
1. How to Get a Mending Villager — The Fast Method
A librarian's trades are randomized the moment it takes the job at a lectern — but only if it's never been traded with. That's the entire trick, and the one rule: never trade with a villager before you've confirmed it offers Mending.
How many rerolls to expect
In default Java, the enchanted-book trade can appear at Novice, Apprentice, Journeyman and Expert level, and the enchantment is picked with equal chances from everything except Soul Speed, Swift Sneak and Wind Burst. A fresh Novice offers a book about two times in three. With roughly 40 enchantments in that pool, our own arithmetic from the wiki's tables puts a Mending offer at under 2% per reroll — around 60 rerolls on average, and roughly one hunt in five runs past 100. That's an estimate, not a measured figure, but it's why a ten-reroll expectation leaves people frustrated. Each reroll is just a lectern broken and placed again, so even a long streak is minutes, not days.
A Mending book costs 10–38 emeralds plus a book, because treasure enchantments trade at double price. A small trading hall with several lecterns lets you work through villagers in parallel — our villager trading hall guide covers cells, locking and the 26.1 breeder changes.
If you're playing with the Villager Trade Rebalance
This opt-in experiment (in Java since 1.20.2) ties librarian books to biome. Under it, Mending is a guaranteed trade from a Master-level swamp librarian — no rerolling, just levelling one villager — and Expert-level swamp armorers sell enchanted chainmail that always carries Mending. The catch: the wiki says you have to build your own village in biomes where villages don't generate naturally to reach these trades. As of the wiki's post-26.3 revisions it is still experimental; only the cartographer and wandering trader changes became default, in Java 1.21.5. The wiki's 26.3 changelog lists no change to librarian book trades, fishing treasure, trial chamber vault loot or structure chest loot, and the 26.4 snapshots are still in testing; the wiki's 26.4 changelog lists no change to librarian book trades either. Check your world's Experiments screen before assuming which rules apply. For what else changed in 26.3, see our snapshot roundup.
2. Mending Fishing — Slow but Passive
With an unenchanted rod, 5% of catches are treasure, and one treasure item in six is an enchanted book — about 0.83% of catches. Luck of the Sea III raises treasure to 11.34%, so books climb to roughly 1.89% per catch. Lure only shortens the wait (5 seconds off the 5–30 second timer per level); it never changes what you catch. Fished books roll like a level-30 enchanting table with treasure enchantments allowed, so Mending is possible but only a minority of the books you land; the wiki publishes no Mending-specific figure for them.
Two details decide whether fishing works at all:
- Open water. Since Java 1.16, treasure only drops if the 5×4×5 area around the bobber is made up entirely of air, lily pads, water source blocks or non-colliding waterlogged blocks. A one-block fishing hole catches fish and junk forever.
- The rod pays for itself. Every catch drops 1–6 XP, so once you do land Mending, a Mending rod used only for fishing never wears out.
AFK fish farms and servers. In single-player and on private worlds, an AFK fish farm is fair game. Public servers are a different story: a June 2026 hosting-company guide warns that many treat unattended automated input as against the rules, and ManaCube moderators said in a 2019 forum thread that auto-fishers were banned on all its game modes. Rules change, so read the current ones before leaving a rod running.
3. Loot Chests — A Nice Bonus, Not a Plan
In Java, these chests can hold a book that rolls Mending (chance of an enchanted book per chest):
- Any enchantment, equally likely: ancient cities (36.5%), desert pyramids (22.2%), big ocean ruins (21.7%), woodland mansions (17.6%), mineshafts (14.1%), monster rooms (13.3%) and pillager outposts (11%).
- Level-30 rolls: stronghold library chests (67.8%), jungle pyramids (4.4%) and other stronghold chests. Mending is possible in these, but the wiki gives no Mending-specific chance, so we don't invent one.
- Trial chamber vaults and reward chests (7%): the book comes from a five-enchantment pool — Mending, Riptide, Loyalty, Channeling or Impaling.
Do the multiplication and a single ancient city chest is about a 1% shot at Mending (our estimate, assuming the roughly 40-enchantment equal pool); a normal trial chamber vault is about 1.4% if the five enchantments are equally likely, which the wiki doesn't state. Two corrections to older guides: the boosted Mending odds in ancient cities only exist under the Villager Trade Rebalance experiment, and End cities aren't a Java book source at all. Loot what you pass. Don't detour.
The Myths to Retire
- Piglin bartering does not give Mending. About 1 barter in 94 (5/469) yields an enchanted book, and it is always Soul Speed. The only bastion chest book the wiki lists is a Soul Speed book in the generic chests.
- Raids don't drop Mending in Java. Pillagers and vindicators dropping enchanted books during raids is Bedrock-only.
- The enchanting table can't roll it. No number of bookshelves changes that.
Every Route Compared
| Route | Java 26.3 odds | Verdict |
|---|---|---|
| Librarian rerolling | Under 2% per reroll (our estimate); repeatable instantly | Fastest. Minutes once you have a villager and a lectern. |
| Swamp librarian (VTR experiment) | Guaranteed at Master | Reliable, but only in worlds with the experiment on. |
| Fishing, Luck of the Sea III | ~1.89% book per catch; Mending a fraction of that | Hours. Good background XP. |
| Trial chamber vault | 7% book; Mending is one of five enchantments in that pool | Worth it if you're clearing chambers anyway. |
| Structure chests | About 1% or less per chest (our estimate) | Pure bonus. |
| Piglins, raids, enchanting table | Zero | Never. |
Recommended Order of Operations
- Find or breed one villager and place a lectern next to it.
- Reroll until Mending appears, checking trades before you ever trade — then lock it in.
- Expand into a small trading hall so more librarians can restock other books.
- Feed your Mending gear with XP: an open-water AFK fishing spot where the rules allow it, or the farms in our mob farm guide. If the gear you want to keep forever is netherite, our guide to finding Ancient Debris covers where to mine the material for it.
- Loot early-game structures opportunistically, but don't rely on them.
Mending FAQ
How many rerolls does it take to get Mending?
About 60 on average by our estimate (under 2% per reroll), though roughly one hunt in five runs past 100. It is arithmetic from the wiki's trade tables, not a measured figure.
Can you get Mending from an enchanting table?
No. Mending is a treasure enchantment, and the wiki states treasure enchantments cannot be obtained through an enchanting table. You get it as a book — from a librarian, fishing or loot.
How rare is Mending in Minecraft?
There is no official rarity number. These are our estimates from the wiki's tables: under 2% per librarian reroll, about 1% per ancient city chest, and about 1.4% per trial chamber vault if the five enchantments in its pool are equally likely. For fishing, the wiki gives only the chance of any enchanted book (about 0.83% of catches, or 1.89% with Luck of the Sea III), and it gives no Mending-specific figure for level-30 books or for End city gear. Deliberate librarian rerolling is the one route where rarity stops mattering.
Can a librarian lose Mending after you trade with it?
No. Per the wiki, once you trade with a villager it keeps its profession forever and its offered trades lock in. Before the first trade, removing and replacing its job site block can change the trades — which is why you check for Mending first and trade once.
Worth knowing
Everything above is vanilla. Servers set their own rules — many treat AFK machines as against the rules. MCRPG (coming soon) runs a single-ledger gold economy where market prices come from other players and the risk they took — so check the rules of whatever server you play before you build a hall or leave a rod running.