|
|
Mechanic: Set Health
|
|
|
====================
|
|
|
|
|
|
## Description:
|
|
|
|
|
|
Sets the health of the target entity.
|
|
|
|
|
|
Attributes
|
|
|
----------
|
|
|
## Attributes:
|
|
|
|
|
|
| Attribute | Aliases | Description | Default Value |
|
|
|
|-----------|---------|-----------------------------|---------------|
|
|
|
| amount | a | Amount of health to set to. | 1.0 |
|
|
|
|
|
|
|
|
|
|
|
|
Examples
|
|
|
--------
|
|
|
## Examples:
|
|
|
|
|
|
This example will set the players' health to 6 (3 hearts) when they
|
|
|
right-click the mob.
|
|
|
|
|
|
Skills:
|
|
|
```yaml
|
|
|
Skills:
|
|
|
- sethealth{a=6} @trigger ~onInteract
|
|
|
- ...
|
|
|
``` |
|
|
\ No newline at end of file |