Minecraft wiki entry for Things_not_to_do, associated text: Fortunately, the Mending enchantment enables one to repair any item they are holding in their main hand, offhand, and any currently worn armor using experience from any source, even if some may not consider experience for 2 durability a good trade. (Note: All of the said items need an individual Mending enchantment in order for this to work.)