Max Durability (Expression) — Skript
Addon: Skript · Category: Expression · Since: 2.5, 2.9.0 (change)
Syntax
[the] max[imum] (durabilit(y|ies)|damage) of %itemtypes/itemstacks/slots%Description
The maximum durability of an item. Changing requires Minecraft 1.20.5+ Note: 'delete' will remove the max durability from the item (making it a non-damageable item). Delete requires Paper 1.21+
Examples
maximum durability of diamond sword
if max durability of player's tool is not 0: # Item is damageable
set max durability of player's tool to 5000
add 5 to max durability of player's tool
reset max durability of player's tool
delete max durability of player's tool