Any easy way to get the % of durability remaining on an item without listing all total item durabilities? I'm working on a skript to dismantle tools/armor, and I want the amount of items you get in return to be determined by how much durability is left.
Example: 40 durability left on a 100 durability item will give 40% of the total materials.
Example: 40 durability left on a 100 durability item will give 40% of the total materials.