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 674 mechanisms...
Namemax_durability
ObjectItemTag
InputElementTag(Number)
Related Tags<ItemTag.max_durability> (Property) Returns the maximum durability (number of uses) of this item. (...)
Description(Property) Sets the maximum durability (number of uses) of this item.
For use with Tag:ItemTag.durability and Mechanism:ItemTag.durability.
See also Language:Item Components.
Provide no input to reset the item to its default value.
Generated Example
- adjust <player.item_in_hand> max_durability:1
GroupProperties
Sourcehttps://github.com/DenizenScript/Denizen/blob/dev/paper/src/main/java/com/denizenscript/denizen/paper/datacomponents/MaxDurabilityAdapter.java#L9