Food Level (Entity Condition Type)

Checks the entity's food level (chicken legs / hunger meter / whatever you wanna call it). The food level is in the range of 0 to 20.

Checks the entity’s food level (chicken legs / hunger meter / whatever you wanna call it). The food level is in the range of 0 to 20.

Type ID: apoli:food_level

!!! note

This entity condition type will only work on players.

Fields

FieldTypeDefaultDescription
comparisonComparisonDetermines how the food level of the player should be compared to the specified value.
compare_toFloatThe value at which the food level of the player will be compared to.

Examples

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

This example will check if the player have 0 hunger shanks (or 0 food points).