Skip to main content

Feed (Entity Action Type)

Feeds the player, filling their hunger bar as if they had eaten a food item with the given values.

Type ID: apoli:feed

note

This action only works on players. The saturation the player gets is worked out as food * saturation * 2.

Fields

FieldTypeDefaultDescription
foodInteger or ExpressionrequiredHow many food points to restore.
saturationFloat or ExpressionrequiredThe saturation value of the food, used in the formula above.

Examples

"entity_action": {
    "type": "apoli:feed",
    "food": 4,
    "saturation": 2
}

This restores 2 hunger shanks (4 food points) and 16 saturation points.