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

# Edit Item

## Edit Item

Edit the item by Item Format.

Some change rule can be done by Item Format, for example:

For set name rule:

```yaml
fake-changes:
  set-name: 'test1'
```

can be replaced to:

```yaml
fake-changes:
  edit-item:
    name: 'test1'
```

View Item Format [here](https://ultimateshop.superiormc.cn/base/item-format). You can parse hold item to ItemFormat by using `/mc generateitemformat` command.

## Edit Item and Replace\*

If you want to rewrite item, you can use `replace-item` option in this rule.

```yaml
fake-changes:
  edit-item:
    name: 'test1'
    repalce-item: true
```


---

# 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/edit-item.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.
