Adds an Item Modifier make_unbreakable:make_unbreakable to make items Unbreakable.
You can use /item modify entity @s weapon.mainhand make_unbreakable:make_unbreakable to make the item in your main hand unbreakable.
This datapack is designed for MC 1.20.1 and should work in from 1.17 (after 20w46a) to 1.20.4 (before 24w09a).