Fixed Custom Sword Durability

Fixes the issue of custom swords losing double durability in Minecraft. This pack ensures modded swords only lose 1 durability per hit, supporting most mods.
This only fixes the durability of the swords when hitting a mob, and will only work if the custom sword has the "minecraft:is_sword" tag and has "sword" in the identification in the code of the custom sword. If it doesn't have that tag, it won't work. This excludes the Minecraft swords so that they wouldn't be affected.
Main Function
- This applies if items have the tag "minecraft:is_sword".
- This applies if items have "sword" in the identification.
- Minecraft items are excluded from the pack.
- Custom swords use 1 durability when hitting an entity, instead of 2 durability.
- Works with other mods with swords.
Screenshots
Without:
With:
Credits
Creators - Addons
- Dimzcraft - Durability Tools Viewer
- SorYPMod - More Tools Addon