Mechanic
setHealth
Sets the target's health
Aliases
setHp
Configuration Fields (1)
| Name | Type | Default | Description |
|---|---|---|---|
| amount a | PlaceholderFloat | 1 | The health value to set on the target |
Examples & Notes
Examples
This example will set the players’ health to 6 (3 hearts) when they right-click the mob.
Skills:
- sethealth{a=6} @trigger ~onInteract
- ...
Universal Mechanic Options
- Author:
- Ashijin
