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 673 mechanisms...
Namemax_durability
ObjectItemTag
InputElementTag(Number)
Related Tags<ItemTag.max_durability> (Property) Returns an item's max durability Language:Item Components.
Description(Property) Sets an item's max durability Language:Item Components.
Provide no input to reset the item to its default value.
Generated Example
- adjust <player.item_in_hand> max_durability:2
GroupProperties
Sourcehttps://github.com/DenizenScript/Denizen/blob/dev/paper/src/main/java/com/denizenscript/denizen/paper/datacomponents/MaxDurabilityAdapter.java#L9