Tools Don't Break Permanently
New Tool Durability Mechanics
Instead of completely destroying worn-out tools, this modification introduces an interesting system of negative durability. When durability drops to zero and below, the tool loses functionality - you can't mine blocks or deal damage with it, but it remains in your inventory!
Restoration Methods
You can't work with broken tools - they become useless. However, there are two ways to bring them back to life:
- Repair via crafting table or anvil - combine tools in a special interface
- Smelting into nuggets - an alternative option for those who prefer recycling
Technical Features for Developers
Working with Data Components
The mod adds a tag system for managing components:
#tdnb:removed_from_broken_items- defines components removed upon breaking#tdnb:restored_to_repaired_items- defines components restored during repair#tdnb:removed_from_broken_and_restored_to_repaired_items- combined option (by default includesminecraft:toolandminecraft:weapon)
Components preserved for restoration are placed in the tdnb:broken_components object within the minecraft:custom_data data component.
Enchantment System
Certain enchantments can be configured to ignore the breaking mechanics:
- Adding enchantments to
#tdnb:ignoredprevents them from being disabled upon breaking - These enchantments don't switch when the tool is repaired
- By default, the ignored ones include:
minecraft:mendingandminecraft:vanishing_curse
When breaking, regular enchantments are moved from minecraft:enchantments to minecraft:stored_enchantments.
Excluded Items
Some item categories are completely ignored by the modification:
#tdnb:ignoredallows adding items for exclusion- Standard exclusions:
#c:elytra(containsminecraft:elytra) and#tconstruct:modifiable
These objects maintain the game's standard behavior without mod intervention.