> For the complete documentation index, see [llms.txt](https://mythicchanger.superiormc.cn/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://mythicchanger.superiormc.cn/match-item-rules/has-enchants.md).

# Has Enchants

## Has Any Enchants <mark style="color:red;">- Premium</mark>

Require the item to has any enchantment.

```yaml
match-item:
  has-enchants:
    - '*'
```

## Has Enchants

Require the item to contain any listed enchantment.

```yaml
match-item:
  has-enchants:
    - 'POWER'
```

## Has Stored Enchants

For enchanted books, require stored enchantments.

* only valid for stored-enchant metadata
* `*` means any stored enchantment

```yaml
match-item:
  has-stored-enchants:
    - 'POWER'
```
