> ## Documentation Index
> Fetch the complete documentation index at: https://docs.nmentities.net/llms.txt
> Use this file to discover all available pages before exploring further.

# Health & Damage

> Damage, healing, potions, fire, hunger and entity removal.

Mechanics that change health, hunger and status: the core combat toolkit.

## damage

Damages living targets. The damage is credited to the mob, so kills count as its kills.

**Alias:** `d`

| Attribute | Alias | Description                            |
| --------- | ----- | -------------------------------------- |
| `amount`  | `a`   | Damage in points (2 points = 1 heart). |

```yaml theme={null}
- damage{amount=6} #onAttack @target
```

## heal

Heals living targets, capped at their max health.

**Alias:** `h`

| Attribute | Alias | Description                   |
| --------- | ----- | ----------------------------- |
| `amount`  | `a`   | Health to restore, in points. |

```yaml theme={null}
- heal{amount=5} #onHurt @self
```

## sethealth

Sets living targets' health to an exact value.

| Attribute | Alias    | Description              |
| --------- | -------- | ------------------------ |
| `amount`  | `health` | The health value to set. |

```yaml theme={null}
- sethealth{amount=1} @target
```

## feed

Restores hunger for player targets.

| Attribute | Description             |
| --------- | ----------------------- |
| `amount`  | Food points to restore. |

```yaml theme={null}
- feed{amount=6} #onInteract @target
```

## potion

Applies a potion effect to living targets.

| Attribute  | Description                                     |
| ---------- | ----------------------------------------------- |
| `type`     | The effect, e.g. `poison`, `speed`, `weakness`. |
| `duration` | How long it lasts. Accepts time units (`10s`).  |
| `level`    | Effect level. `1` = level I.                    |

```yaml theme={null}
- potion{type=poison;duration=10s;level=1} #onHurt @target
```

## potionclear

Removes all potion effects from living targets.

**Alias:** `removeholding`

```yaml theme={null}
- potionclear @target
```

## ignite

Sets targets on fire.

| Attribute | Alias      | Description                    |
| --------- | ---------- | ------------------------------ |
| `ticks`   | `duration` | Burn time. Accepts time units. |

```yaml theme={null}
- ignite{ticks=5s} #onAttack @target
```

## extinguish

Puts out fire on targets. No attributes.

```yaml theme={null}
- extinguish #onInteract @target
```

## remove

Removes target entities from the world. Never affects players.

**Alias:** `despawn`

```yaml theme={null}
- remove @mobsRadius[10]
```

## suicide

Kills the mob itself, firing its `#onDeath` effects. No attributes.

```yaml theme={null}
- suicide  #onInteract @self
```
