> ## 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.

# Entity State

> Names, speed, gravity and glow toggles.

Mechanics that flip properties on entities. Small on their own, useful in phase changes: a boss that starts glowing, speeds up and gets a new name at half health tells the player something changed.

## setname

Sets targets' visible name.

**Alias:** `setmobname`

| Attribute | Description                                                      |
| --------- | ---------------------------------------------------------------- |
| `name`    | The new name. Supports `&` colors and [placeholders](variables). |

```yaml theme={null}
- setname{name=&4&lEnraged Toast King} @self
```

## setspeed

Sets living targets' movement speed attribute.

| Attribute | Alias   | Description                                             |
| --------- | ------- | ------------------------------------------------------- |
| `amount`  | `speed` | The speed value. Vanilla walking is around `0.2`–`0.3`. |

```yaml theme={null}
- setspeed{amount=0.4} @self
```

## setgravity

Toggles gravity on targets. `false` makes them float.

| Attribute | Description        |
| --------- | ------------------ |
| `gravity` | `true` or `false`. |

```yaml theme={null}
- setgravity{gravity=false} @self
```

## glow

Toggles the entity outline glow.

**Alias:** `setglowing`

| Attribute | Description        |
| --------- | ------------------ |
| `glowing` | `true` or `false`. |

```yaml theme={null}
- glow{glowing=true} @self
```

## A phase change in practice

```yaml theme={null}
  effects:
  - if{cond=health <= 150;then=enrage} #onHurt @self
  enrage:
  - setname{name=&4&lEnraged Toast King} @self
  - setspeed{amount=0.45} @self
  - glow{glowing=true} @self
  - sound{sound=entity.ender_dragon.growl;volume=2} @playersRadius[30]
```

See [Flow Control](flow-control) for how the `if` works.
