| Name | <ItemTag.food> |
| Returns | MapTag |
| Mechanism | ItemTag.food |
| Description | (Property) Returns an item's food 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. |
| Generated Example | |
| Group | Properties |
| Source | https://github.com/DenizenScript/Denizen/blob/dev/paper/src/main/java/com/denizenscript/denizen/paper/datacomponents/FoodAdapter.java#L11 |