Player
paper/player_set_food
Set Player Food
Sets a player's food level and saturation.
Inputs
| Name | Type | Optional | Description |
|---|---|---|---|
exec |
exec | Incoming execution. | |
player |
player | The player. | |
food |
number | ✓ | Food level (0–20). |
saturation |
number | ✓ | Saturation (0–20). |
Outputs
| Name | Type | Description |
|---|---|---|
exec |
exec | Continues after setting. |
Properties
| Key | Type | Default | Description |
|---|---|---|---|
food |
number | 20 |
Food Level (0–20) |
saturation |
number | 20 |
Saturation (0.0–20.0) |