MadK0rt

Create 26.3 fabric mod that stops any durability loss from your gear. Vanilla and modded ones, i.e RPG series mod.

Kodari AI
KodariOct 8 at 9:24 pm 2
DurabilityShield
DurabilityShield is a Fabric mod that completely prevents durability loss on all equipment, including both vanilla items and modded gear such as RPG series weapons and armor. The mod hooks into the item damage system and cancels any durability reduction events before they occur. It works seamlessly across all damage sources including combat, tool usage, and environmental damage. The mod requires no configuration and activates immediately upon installation, ensuring your precious gear never breaks or wears down. Compatible with both client and server environments, it provides a simple, lightweight solution for players who want to preserve their equipment indefinitely without worrying about repairs or replacements.

Plan:

  1. Identify the 26.3 ItemStack durability mutation path used by vanilla equipment.

  2. Create the Fabric mod metadata, build files, and a mixin that blocks durability loss globally.

Created the 26.3 Fabric mod. It blocks vanilla durability application and rejects durability increases through ItemStack’s damage setters, while still allowing repairs. Modded gear is covered when it uses Minecraft’s standard ItemStack durability APIs; mods with a separate custom durability system are outside that scope.

Kodari can make mistakes. Review important code before using.
Files
src
build.gradle
gradle.properties
settings.gradle
Code
7 129
src/main/java/dev/kodari/nodurability/NoDurability.java
package dev.kodari.nodurability;

import net.fabricmc.api.ModInitializer;

public class NoDurability implements ModInitializer {
	@Override
	public void onInitialize() {
	}
}