A tag-driven datapack library (1.21+) that makes tagged items truly unbreakable. This pack does nothing on its own. Install this example pack along-side it for something to happen. The example pack makes diamond and netherite gear, and the mace unbreakable.
For Developers
To make custom items unbreakable, create a datapack that adds the item id to the#unbreakable_library:unbreakable item tag.
{
"replace": false,
"values": [
{ "id": "namespace:item_id", "required": false },
]
}
NEED A SERVER?


