Food Component
An object which defines a new food component.
Note
The actual food saturation level is determined by the food * saturation * 2 formula.
Fields
| Field | Type | Default | Description |
|---|---|---|---|
nutrition |
Integer | Determines the amount of hunger shanks (half a shank = 1) the food component recovers from consumption. | |
saturation |
Float | Determines the amount of saturation to give to the player upon consumption. | |
can_always_eat |
Boolean | false |
Determines whether the food component can always be eaten anytime. |
eat_seconds |
Float | 1.6 |
Determines the seconds of which the food will be consumed for. |
meat |
Boolean | REMOVED | Food components no longer have the meat property. Include the item in either the #minecraft:meat or #minecraft:wolf_food item tag instead. |
snack |
Boolean | REMOVED | Use eat_seconds instead. (Using a value of 0.8 is equivalent to this field being true.) |
using_converts_to |
Item Stack | optional | If specified, the consumed item stack will be converted into this item stack. |
effect |
Food Effect Entry | optional | If specified, this effect (with the specified chance) will be applied upon consumption. |
effects |
Array of Food Effect Entries | optional | If specified, these effects (with the specified chances) will be applied upon consumption. |
Examples
"food_component": {
"nutrition": 4,
"saturation": 1.0
}
A food component that recovers 2 hunger shanks and 8 saturation points.