Credits: Salas
Better Mending addon
Better Mending is an addon for Minecraft 1.21.2 that automatically repairs your enchanted gear at the cost of XP. So, every time you lose some durability on an enchanted sword, you can instantly get it back. The only requirement is that the sword, or any other enchanted item, must have the Mending enchantment for the addon to work. You can manually activate the mending ability by sneaking and tapping. Every 12 experience points will be converted into 24 points of durability for your items.
Credits: Salas
Credits: Salas