Mending is a treasure enchantment, so an enchanting table never offers it. You can get it from a librarian's book trade, from fishing, from enchanted book chests in several structures, or from raid drops on Bedrock. The costs and odds for each route are:
| Route | Edition | Cost or odds |
|---|---|---|
| Librarian book trade | Java and Bedrock | 10 to 38 emeralds; about 1 in 40 book offers |
| Fishing | Java and Bedrock | Enchanted book on 0.83% of catches |
| Structure chests | Java and Bedrock | About 0.3% to 0.9% Mending per chest roll |
| Trial Chambers vault and reward chests | Java and Bedrock | Book that can hold Mending on 7% of rolls (Java), 1.7% (Bedrock) |
| Raid drops | Bedrock only | Enchanted book on about 3.3% of raiders on Easy and Normal, 4.1% on Hard |
| Swamp librarian | Java and Bedrock | Guaranteed at Master level, with the Villager Trade Rebalance experiment on |
Buying Mending From a Librarian in Minecraft
Librarians are villagers who work at a lectern and sell enchanted books. The full list of villager trades shows every offer they can make. Librarians sell books at the Novice, Apprentice, Journeyman, and Expert levels, while the Master level sells red and yellow candles by default.

Enchanted book prices depend on the enchantment's level. Treasure enchantments like Mending cost double the normal range, which is why a level I Mending book costs 10 to 38 emeralds instead of 5 to 19.
Each book offer is one random enchantment, with every eligible enchantment equally likely, followed by a random level. Soul Speed, Swift Sneak, and Wind Burst are never offered this way. That gives Mending about a 1 in 40 chance per offer in Java and about 1 in 39 in Bedrock, since Java's pool includes Sweeping Edge, which Bedrock doesn't have. You can see every enchantment in Java on the enchantments list, and a villager can offer the same book more than once.
How often a librarian shows a book depends on the edition. In Java, each level unlocks up to two trades, chosen at random from that level's pool. In Bedrock, one trade is picked for each slot.
Each book trade can be used 12 times before it runs out. Villagers restock when they work at their lectern, up to twice a day, and Bedrock villagers also need a bed nearby to restock.
Lowering the Price of a Mending Book
Two things can bring the price down. The first is the Hero of the Village effect, which you get by winning a raid. It cuts villager prices by 30% at level I, rises by 6.25% for each level above that, and reaches 55% at level V. The discount is rounded down and never drops a price below 1 emerald.
Reputation is the second. Curing a zombie villager gives that villager a permanent major positive reputation, which lowers its prices. Trading builds a temporary positive reputation, which helps only for a while.
Demand matters too. Buying the same offer makes its price go up, and the price drops back as the villager restocks.
Rerolling a Librarian's Book Offers
A librarian's offers can change before it has traded with you. Only a novice librarian that has never traded can be rerolled, because a villager that has traded keeps its job and its offers for good. The lectern is the librarian's job site block, so a reroll means removing it and replacing it.
- Find a novice librarian that has never traded with you.
- Break its lectern. Any tool will break it, but an axe is the fastest. Breaking the lectern also drops the book it holds.
- Let the villager lose its job. A novice villager that hasn't traded can change back into an unemployed villager once its lectern is gone.
- Place a lectern nearby. An unemployed villager becomes a librarian again when an unclaimed lectern is close by.
Removing and replacing the lectern can change the trades offered, but it doesn't guarantee a Mending book. Novice villagers that haven't traded also reset their offers every so often on their own.
Fishing for Enchanted Books That Can Hold Mending
Fishing can produce enchanted books, but the odds are low. Without Luck of the Sea, 5% of catches are treasure. The treasure pool has six items with equal odds: a bow, an enchanted book, a fishing rod, a name tag, a nautilus shell, and a saddle. That puts an enchanted book on 0.83% of catches, and Luck of the Sea raises it to 1.18% at level I, 1.53% at level II, and 1.89% at level III.
The book is enchanted using the odds of a level 30 enchanting table, and treasure enchantments like Mending are allowed. Soul Speed, Swift Sneak, and Wind Burst can't come from fishing.
In Java, treasure only comes up when the bobber sits in open water. The bobber must rest on the water surface, and the 5 x 4 x 5 area around it can hold only air, lily pads, or water source blocks in each layer. Bedrock doesn't have this rule.
Enchanted Book Chests in Minecraft Structures
Several structures have chests that can hold enchanted books. Each chest roll has a set chance of including one, and that book's enchantment follows the same equal-chance rule as librarian offers. Mending's share of each roll works out like this:
| Structure | Java | Bedrock |
|---|---|---|
| Ancient City chest | 0.91% | 0.94% |
| Desert Pyramid chest | 0.56% | 0.57% |
| Ocean Ruins big ruins chest | 0.54% | 0.56% |
| Woodland Mansion chest | 0.44% | 0.52% |
| Mineshaft minecart chest | 0.35% | 0.36% |
| Monster Room chest | 0.33% | 0.34% |
| Pillager Outpost chest | 0.28% | 0.28% |
Ancient City chests give the best odds of these. You can find each of these structures in the full list of structures.
Trial Chambers vault and reward chests work differently. Their enchanted book can hold Mending as one of five possible enchantments, alongside Riptide, Loyalty, Channeling, and Impaling. That book appears on 7% of rolls in Java and 1.7% in Bedrock, and books from ominous vaults don't hold Mending.
Bastion remnant chests aren't a source, since they only hold Soul Speed books.
Raid Drops for Mending on Bedrock
Raid drops are a Bedrock feature. In Java, raiders drop their regular loot, and the raid captain drops an Ominous Banner.
On Bedrock, pillagers and vindicators get an extra drop roll. That roll happens 65% of the time on Easy and Normal, and 80% of the time on Hard. One of its outcomes is an enchanted book, at a 2 in 39 share of the roll, which works out to about 3.3% of raiders on Easy and Normal and about 4.1% on Hard.
The book carries a level 30 enchantment and can be a treasure enchantment, so Mending is possible on it.
Swamp Librarians and the Villager Trade Rebalance Experiment
Villager Trade Rebalance is an experimental setting that changes what librarians sell, and it's off by default. In Java, you turn it on with the Villager Trade Rebalance data pack. In Bedrock, you turn on Villager Trade Rebalancing in the Experiments settings.
With it on, a librarian's regular book offers come from a set of enchantments tied to the biome of its village. Swamp librarians offer Depth Strider, Respiration, and Curse of Vanishing as their common enchantments, and Mending as their special one. The special book is guaranteed at Master level, on top of the normal trades, and it always comes at a fixed level. Only master-level swamp librarians sell Mending books.
Villages don't generate naturally in swamps. To get swamp librarians, you need to breed villagers in a swamp or cure zombie villagers there. The experiment also raises the chance of Mending books in Ancient City chests.
Applying a Mending Book With an Anvil
A Mending book goes onto gear at an anvil, and the book is used up in the process.
- Open an anvil.
- Put the item in the left slot and the Mending book in the right slot.
- Take the enchanted item from the result slot.
Mending can go on these items:
- Armor and gear: helmet, chestplate, leggings, boots, shield, elytra, turtle shell
- Weapons: sword, bow, crossbow, trident, mace, spear
- Tools: pickaxe, shovel, axe, hoe, shears, brush, fishing rod, flint and steel, carrot on a stick, warped fungus on a stick
An item with Infinity can't take Mending, because the two don't work together on an anvil.
How Mending Repairs Items With XP Orbs
Mending doesn't repair on its own. It works when you collect experience orbs, and it can repair items in your main hand, your offhand, or your armor slots. Items in your inventory aren't repaired. Orbs come from any source, including fishing, which drops an orb worth 1 to 6 XP.
Each XP point in an orb restores 2 durability, and every 2 durability repaired uses one XP point from the orb. An orb repairs only one item. For each orb, the game picks one equipped Mending item that isn't at full durability, at random. Durability doesn't change those odds, so an item one point from full has the same chance as one almost broken, even though the repair uses less XP.
Leftover XP from the orb goes to your XP bar. No XP reaches the bar while a Mending item can still take repairs.







