# 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: 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.
