Denizen Script Mechanisms


Mechanisms are found in object properties, the 'adjust' command, and similar. These are used to change the state of an object.
Learn about how mechanisms work in The Beginner's Guide.


Showing 1 out of 644 mechanisms...
Namedurability
ObjectItemTag
InputElementTag(Number)
Related Tags<ItemTag.durability> Returns the current durability (number of uses) on the item.
<ItemTag.max_durability> Returns the maximum durability (number of uses) of this item. (...)
<ItemTag.repairable> Returns whether the item can be repaired. (...)
DescriptionChanges the durability of damageable items.
Generated Example
- adjust <player.item_in_hand> durability:3
Sourcehttps://github.com/DenizenScript/Denizen/blob/dev/plugin/src/main/java/com/denizenscript/denizen/objects/properties/item/ItemDurability.java#L96