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
| Field | Type | Default | Description |
|---|---|---|---|
comparison | Comparison | required | How the player's food level is compared with compare_to. |
compare_to | Float | required | The 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).