> For the complete documentation index, see [llms.txt](https://enchantedmobs.superiormc.cn/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://enchantedmobs.superiormc.cn/docs/abilities/set-health.md).

# Set Health

## Set Health

Sets (or heals) target health, capped at max health.

Supports `{max-health}` and `{health}` variables.

```yaml
type: set_health
amount: 10
```

Default `target: SOURCE`.

#### Field Details

**amount**: resulting health value (supports formulas).

```yaml
amount: 20
```
