I'm trying to make a block regeneration script and because I use cancel event to not break the block, I needed to add a way for the tool to take durability from breaking it. However, the tool would go into the negatives and would never break. I tried adding an if statement checking if the tool's durability is less than 0, but nothing would happen. Could someone please help me? I'll have the script as a download. The reason why I choose doing this than download the BlockRegen plugin is because this also acts as my would guard as if the player tries to break a block, it will cancel the event.