Scaled Anvil Repair
Scaled Anvil Repair is a lightweight, server-side NeoForge mod that lets you change how much durability an item restores when repaired with its designated anvil repair material.
Instead of every repair material restoring the same fixed percentage of an item's durability, you can configure a material cost for individual items. The repair amount is then based on that configured cost.
How It Works
For every item configured with a material cost of N, each repair material restores:
1 / N of the item's maximum durability
For example:
| Material Cost | Durability Restored |
|---|---|
| 1 | 100% |
| 2 | 50% |
| 3 | 33.33% |
| 4 | 25% |
| 5 | 20% |
So if an item has 250 maximum durability:
- Cost
1→ 250 durability restored per material - Cost
2→ 125 durability restored per material - Cost
3→ 84 durability restored per material - Cost
4→ 63 durability restored per material
Durability is rounded up to the nearest whole point.
Configuration
Only items or item tags explicitly listed in the configuration file scaledanvilrepair-server.toml are affected.
The server configuration provides two lists (items and item_tags). Both use the following format:
"item_id=material_cost"
For example:
items = [
"minecraft:iron_sword=2",
"minecraft:iron_pickaxe=3",
"minecraft:iron_axe=3",
"minecraft:iron_shovel=1",
"minecraft:iron_hoe=2"
]
item_tags = [
"minecraft:swords=2",
"minecraft:pickaxes=3",
"minecraft:axes=3",
"minecraft:shovels=1",
"minecraft:hoes=2"
]
This means:
- Iron Sword → 50% durability per iron ingot
- Iron Pickaxe → 33.33% durability per iron ingot
- Any axe (tag #minecraft:axes) → 33.33% durability per material
- and so on...
Important: Do not use the '#' prefix when defining tags. Exact item IDs always have priority over tags. If a single item matches multiple tags, the first matching tag in the list is applied. Items that are not configured retain normal vanilla anvil repair behavior.
The shipped-in configuration file already comes with all the vanilla repairable items and default tool tags configured out of the box.
What Is Changed?
Scaled Anvil Repair only changes the durability restored when using an item's valid repair material. Also, since 1.0.2, it also changes the upgrade recipe for smithing table, requiring the same amount of materials to upgrade an item as it does to fully repair it (can be disabled in the config).
Other anvil mechanics remain vanilla, including:
- Repairing by combining two items
- Enchantment combining
- Enchantment costs
- Anvil XP costs
- Renaming
- Anvil work penalties
- Items that are not configured
Server-Side
This mod is server-side only.
Players connecting to a server do not need to install the mod on their client. The server configuration determines the repair behavior.
Why?
This mod is intended for modpacks and servers that want repair efficiency to reflect the amount of material invested in crafting an item.
Vanilla Minecraft gives every repair material the same basic repair efficiency, regardless of how much material was required to create the tool. Scaled Anvil Repair lets you make this configurable.
Compatibility
Scaled Anvil Repair is designed for Minecraft 1.21.1 on NeoForge.
The mod only affects explicitly configured items and is designed to work with modded items as long as they provide a valid anvil repair material.
Also has special integration with the following mods:
- Mending Reworked: when installed, tools with the Mending enchantment automatically receive a 2.0x durability restoration multiplier. This perfectly scales Mending Reworked's Mending repair buff alongside your custom material costs.
You may request additional mod compatibility as long as it's not accomplished by just adding more entries in the config (c'mon, you can do this yourself...).
Source Code
Source code and issue tracking are available on GitHub.
License: MIT

