Skip to main content

Food Level (Entity Condition Type)

Compares the entity's food level with a number. The food level is what the hunger bar shows, from 0 to 20.

Type ID: apoli:food_level

note

This condition only works on players.

Fields

FieldTypeDefaultDescription
comparisonComparisonrequiredHow the player's food level is compared with compare_to.
compare_toFloatrequiredThe number the food level is compared with.

Examples

"condition": {
    "type": "apoli:food_level",
    "comparison": "==",
    "compare_to": 0
}

This checks whether the player has no hunger shanks left (0 food points).