I have a set of commands which modify the durability of a held item by -1. But unfortunately minecraft does not automatically break items when they try to go below 0.
Is there anyway to check if the item a player is holding is at 0 durability, and subsequently delete it? My initial thought would be a predicate and clear command but predicates can only track damage on an item, and I'm hoping to make it more universal so I can use this for a personal library.