> 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/change-rules/add-enchants.md).

# Add enchants

## Add enchants <a href="#add-enchants" id="add-enchants"></a>

Add enchantments to items. Please note that in general, you should use it in `real-changes`. If you use it in `fake-changes`, the enchantment will actually take effect, but it appears to disappear.

```yaml
real-changes:
  add-enchants:
    POWER: 1
  add-enchants-ignore-level: true # If set to false, and the item already has this enchantment, we will check the enchantment level item has, if greater than the value you set here, we will skip this rule.
```

## Add stored enchants

```yaml
real-changes:
  add-stored-enchants:
    POWER: 1
  add-stored-enchants-ignore-level: true # If set to false, and the item already has this enchantment, we will check the enchantment level item has, if greater than the value you set here, we will skip this rule.
```


---

# 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/change-rules/add-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.
