Player
paper/player_set_health
Set Player Health
Sets a player's health to a specific value.
Note: Value is clamped between 0 and the player's max health. Setting to 0 kills the player.
Inputs
| Name | Type | Optional | Description |
|---|---|---|---|
exec |
exec | Incoming execution. | |
player |
player | The player. | |
health |
number | ✓ | New health value. |
Outputs
| Name | Type | Description |
|---|---|---|
exec |
exec | Continues after setting. |
Properties
| Key | Type | Default | Description |
|---|---|---|---|
health |
number | 20 |
Health |