
Better Durability Reforged
The mod implements a protection system for equipment on the verge of breaking. When the durability of your tool, weapon, or armor element reaches critical minimum (the item will break on next use), the game automatically switches it to a "Broken" state, blocking further use until repair is performed.
The development of this version is based on the original code of Better Durability, initially created by Darkorg69 and enhanced by TsXor, who expanded the functionality with a blacklist of exceptions and added support for armor and shields in Minecraft versions 1.19+. Under the MIT license, this modification is an unofficial port for Forge 1.20.1, combining the best aspects of both projects.
Protection System Features
Unlike the base version, the revised mod includes an experimental whitelist option that ensures the preservation of items not belonging to the game's standard tool set (for example, knives from the Farmer's Delight mod). For such objects, a fixed durability reserve is set - 2 units before breaking. It should be noted that the mechanics only cancel the click event, which in certain situations may lead to unexpected interactions with protected items.
// Example of whitelist configuration in code
config.addToWhitelist("farmersdelight:iron_knife");
config.addToWhitelist("farmersdelight:flint_knife");