Player
paper/player_get_food
Get Food
Gets the food level and saturation of a player.
Note: Food level 20 is full, 0 is starving. Saturation drains before food level, acting as a buffer. Use Set Food to modify these values.
Inputs
| Name | Type | Optional | Description |
|---|---|---|---|
player |
player | The player to read food from. |
Outputs
| Name | Type | Description |
|---|---|---|
food |
number | Current food level (0–20). |
saturation |
number | Current saturation (0.0–20.0). |
Examples
Check if a player is hungry
Trigger logic when food drops below 6.
- Get Food → food → Compare (< 6) → Branch