> 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/contains-enchants-stored-enchants.md).

# Contains Enchants/Stored Enchants

{% hint style="info" %}
The `contains-enchants` rule itself already support stored enchants in enchanted book, so you don't need change the rule ID to `contains-stored-enchants`.
{% endhint %}

## Contains Enchants/Stored Enchants <mark style="color:red;">- Premium</mark>

Similar to `has-enchants`, but require the enchantment level must be greater than the value you set.

```yaml
match-item:
  contains-enchants:
    POWER: 1
```

## Contains specified levels enchants/stored Enchants <mark style="color:red;">- Premium</mark> <a href="#remove-enchants" id="remove-enchants"></a>

If you want to make only specified enchantment level take effect, you can use int list at here. For example, I want to make only item has Power level 1 enchantment match, then you should set this section like this:

```yaml
match-item:
  contains-enchants:
    POWER: [1] 
    OTHER: [1,2,5] # Means level1, 2 and 5.
```


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://mythicchanger.superiormc.cn/match-item-rules/contains-enchants-stored-enchants.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
