> 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/replace-item.md).

# Replace Item

## Replace Item

Replaces item in a specific slot.

```yaml
type: replace_item
slot: MAIN_HAND
item:
  material: DIAMOND_SWORD
```

Default `target: SOURCE`.

#### Field Details

**slot**: equipment slot to replace.

```yaml
slot: HELMET
```

**item**: item builder config (supports existing BuildItem format).

```yaml
item:
  material: SHIELD
```
