set %i:ITEMSTACK_POSSESSIVE% durability [to] %val:INT% — Statements

set %i:ITEMSTACK_POSSESSIVE% durability [to] %val:INT%
Item1.0.0

Description

Sets the durability damage of a damageable item.

Examples

set item's durability to 100

All Possible Usages (2)

Every distinct way you can write this pattern, with optional groups and choice groups expanded. Placeholders are shown as <name>.

set <i> durability <val>
set <i> durability to <val>

Related (Item)