Описание
This mod rebalances **Mending** and **anvil mechanics** to make Mending a **late-game convenience**, not a mandatory enchantment. It also adjusts **librarian book trades**, with prices that scale more fairly based on enchantment levels.
## **Features**
**Rebalanced Mending**
* _Mending_ has been removed from librarian trades and fishing. It is therefore **no longer farmable**, and can now **only be found in loot chests**.
* The **best structures** to find enchanted books, including Mending, are:
* Stronghold Library – 67.8%
* Ancient City – 35.9%
* Desert Pyramid – 23.5%
* Underwater Ruins – 21.7%
* Woodland Mansion – 14.9%
* Monster Room (Dungeon) – 14.7%
* Mineshaft – 14.1%
* Pillager Outpost – 11%
* Jungle Pyramid – 4.5%
* Stronghold Storeroom – 4%
* Stronghold Altar – 2.5%
**Anvil Logic Overhaul**
* Renaming an item will now **always costs 1 level**.
* Repairing with ingots or materials (like iron, diamond, netherite, etc.) has been reworked, the number of units needed now depends on how many are used in the item's **crafting recipe** (e.g., 1 diamond for a shovel, 3 for a pickaxe).
* Anvil levels costs are now **independent of usage history**. The cost is instead calculated based on:
* The total **enchantment levels** present on the item _(1 base level + 1 level per enchantment level)_.
* The **percentage of durability restored**.
Example: Repairing a diamond pickaxe with Fortune III and Efficiency V means a total of 9 enchantment levels (1 base + 3 + 5). Repairing 33% of its durability with a single diamond would cost 3 levels.
**Rebalanced Librarian Trades**
* Enchanted book prices now **scale dynamically** based on the **enchantment level**.
* Fully compatible with other mods that add custom enchanted books, their prices will be dynamically adjusted as well.
* **Single-level enchantments** (e.g., _Silk Touch_, _Flame_) are treated as if they were **one level higher** when determining their price.
* **Treasure enchantments** (e.g., _Frost Walker_, _Curse of Binding_) are also priced **as if one level higher**. Treasure enchantments that are also **single-level** are treated as **two levels higher** (e.g., _Curse of Binding_ is priced like a Level III enchantment).
* The adjusted price tiers are:
* **6–21** emeralds for Level I
* **22–35** for Level II
* **36–47** for Level III
* **48–56** for Level IV
* **57–62** for Level V
* The **63–64** emerald price range is reserved for **Level V treasure enchantments**, even though such enchantments do not exist in vanilla Minecraft.