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 668 mechanisms...
Namefood
ObjectItemTag
InputMapTag
Related Tags<ItemTag.food> (Property) Returns an item's food Language:Item Components. (...)
Description(Property) Sets an item's food Language:Item Components.
The map includes keys:
- "nutrition", ElementTag(Number) representing the amount of food points restored by this item.
- "saturation", ElementTag(Decimal) representing the amount of saturation points restored by this item.
- "can_always_eat", ElementTag(Boolean) controlling whether the item can always be eaten, even if the player isn't hungry.
Provide no input to reset the item to its default value.
GroupProperties
Sourcehttps://github.com/DenizenScript/Denizen/blob/dev/paper/src/main/java/com/denizenscript/denizen/paper/datacomponents/FoodAdapter.java#L11