Food Level
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: origins:food_level
Note
This entity condition type will only work on players.
Fields
Field | Type | Default | Description |
---|---|---|---|
comparison |
Comparison | How the food level should be compared to the specified value. | |
compare_to |
Float | Which value the food level should be compared to. |
Examples
"condition": {
"type": "origins:food_level",
"comparison": "==",
"compare_to": 0
}
This example will check if the player have 0 hunger shanks (or 0 food points).