Food Component (Data Type)

An Object which defines a new food component.

An Object which defines a new food component.

The actual food saturation level is determined by the food * saturation * 2 formula.

Fields

FieldTypeDefaultDescription
hungerIntegerThe amount of hunger shanks the food component recovers upon consumption.
saturationFloatThe amount of saturation to give the player upon consumption.
meatBooleanfalseWhether this food component counts as meat or not.
always_edibleBooleanfalseWhether this food component is edible at full hunger or not.
snackBooleanfalseWhether this food component takes as long as dried kelp to eat (16 ticks) or not (32 ticks).
effectStatus Effect InstanceoptionalA status effect and the chance of it triggering upon consuming something with this food component.
effectsArray of Status Effect InstancesoptionalA status effect and the chance of it triggering upon consuming something with this food component.

Examples

"food_component": {
    "hunger": 4,
    "saturation": 1.0
}

A food component that recovers 4 hunger and 8 saturation points.