> 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-attribute.md).

# Set Attribute

## Set Attribute

Sets base value of an entity attribute.

```yaml
type: set_attribute
attribute: MAX_HEALTH
value: 40
```

Default `target: SOURCE`.

#### Field Details

**attribute**: attribute name to modify.

```yaml
attribute: MOVEMENT_SPEED
```

**value**: new value. Supports `{max}` (attribute max) and `{now}` (current attribute value).

```yaml
value: 0.4
```
