Background: I'm not sure how to go about this so I don't have code to bug fix, more of an idea which I have been trying (unsuccessfully) to do on my own for some time now.
Idea: I want to make a recipe which will smith together (using the smithing table) any item which has full durability but can lose durability (eg: armor, tools, and weapons) with this item 'create_things_and_misc:mending_rune' to make a version of the original item with the only change being it has the Unbreakable:1b tag. Essentially, I want to add an unbreakable item recipe to all the items that it makes sense for (items with durability) that don't already have the tag and are at full durability. Can someone help me with that?