mod doesn't need fabric api
i decided to make a mixin that changes the unbreaking enchantment to make the item actually unbreakable.
just apply the unbreaking enchantment to whatever item you can apply it to and it would probably work.
the config can be changed to make the last level of the unbreaking enchantment only make the item unbreakable, to disable/enable mending incompatibility, edit enchanted loot generation (so that unbreaking and mending don't end up on the same item), apply the unbreakable nbt tag onto the tool instead to work from a specific level onwards, the config file is located in config/actuallyunbreaking.json or alternatively if you are using mod menu and cloth config you can use the config gui ingame!
config option explanations (if you're not using the gui)
- maxLevelOnly: only the last level of unbreaking will set the tool to be unbreakable if this is true. default = false
- useUnbreakableAtLevel: if this is true, the tool will only be unbreakable at a specified level (overrides maxLevelOnly option). default = false
- unbreakableAtLevel: the specified level the tool will be unbreakable at. default = 3
- mendingIncompatibility: unbreaking will be incompatible with mending if this is true. default = true
- editEnchantedLootGeneration: enchanted loot will not generate with both mending and unbreaking if this is true. default = true
- useUnbreakableTag: when the tool takes damage, the unbreakable nbt tag will be added and unbreaking (and mending) will be removed from the tool (you will no longer be able to add unbreaking and mending to the tool) if this is true. default = true
this mod is server side only.
modpacks??
sure whatever