Modify Food - apace100/origins-fabric GitHub Wiki

Power Type. Modifies the food level and saturation gain when a player eats specific food items and optionally allows executing an Entity Action on the eater.

Type ID: origins:modify_food

Fields:

item_condition, Item Condition, optional: If set, the modifiers will only apply to food items which satisfy this condition.

food_modifier, Attribute Modifier, optional: If set, this modifier will apply to the food amount gained by eating.

food_modifiers, array of Attribute Modifiers, optional: If set, these modifiers will apply to the food amount gained by eating.

saturation_modifier, Attribute Modifier, optional: If set, this modifier will apply to the saturation gained by eating.

saturation_modifiers, array of Attribute Modifiers, optional: If set, these modifiers will apply to the saturation gained by eating.

entity_action, Entity Action, optional: If set, this action will be executed on the entity eating this item.