> For the complete documentation index, see [llms.txt](https://rabbit-6.gitbook.io/ankinbt-wiki/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://rabbit-6.gitbook.io/ankinbt-wiki/english-en_us/user-guide/advanced-mode.md).

# Advanced Mode

Advanced Mode provides a full NBT tree editor.

It lets you view and edit all data components on an item.

Internally, it serializes the whole `ItemStack` via `ItemStack.CODEC` into a `CompoundTag`.

On save, it deserializes it back.

## Layout

* **Left sidebar**: item info panel (item ID, stack count, component count)
* **Right panel**: NBT tree view
* **Top bar**: title, mode toggle (Easy/Advanced), search bar, action buttons
* **Bottom status bar**: status messages

## Tree view

The NBT tree shows all components in a hierarchy:

* **Compound** `{}`: named children (curly braces)
* **List** `[]`: ordered children (square brackets)
* **Primitive tags**: Byte, Short, Int, Long, Float, Double, String
* **Array tags**: ByteArray, IntArray, LongArray

Each tag type uses a different **color**:

| Tag type                      | Color         |
| ----------------------------- | ------------- |
| Compound                      | White         |
| List                          | Light blue    |
| String                        | Green         |
| Numbers (Byte/Short/Int/Long) | Gold / Yellow |
| Decimals (Float/Double)       | Orange        |
| Arrays                        | Cyan          |

## Navigate the tree

| Action                 | How                                         |
| ---------------------- | ------------------------------------------- |
| **Select a node**      | Click it                                    |
| **Up/down navigation** | Arrow keys (Up/Down)                        |
| **Expand/collapse**    | Double-click, press `E`, or click the arrow |
| **Expand all**         | Top bar: "Expand all"                       |
| **Collapse all**       | Top bar: "Collapse all"                     |

## Edit values

{% stepper %}
{% step %}

### Select a node

Select a tag node in the tree.
{% endstep %}

{% step %}

### Open the editor

Double-click or press `Enter` to edit its value.
{% endstep %}

{% step %}

### Validation rules

Input is validated based on tag type:

* **String**: any text
* **Byte**: integer -128 to 127
* **Short**: integer -32768 to 32767
* **Int**: integer -2,147,483,648 to 2,147,483,647
* **Long**: integer -9,223,372,036,854,775,808 to 9,223,372,036,854,775,807
* **Float/Double**: decimals
  {% endstep %}

{% step %}

### Apply or cancel

* Press `Enter` or click **Confirm** to apply.
* Press `Esc` to cancel.
  {% endstep %}
  {% endstepper %}

## Create new tags

{% stepper %}
{% step %}

### Pick the target container

Select a **Compound** or **List** node.
{% endstep %}

{% step %}

### Open the create menu

Click **"+ New"** in the top bar.
{% endstep %}

{% step %}

### Choose the type

Pick a tag type from the dropdown.
{% endstep %}

{% step %}

### Enter name and value

Enter the tag name (required for Compound children) and the value.
{% endstep %}

{% step %}

### Done

Confirm to add the new tag.
{% endstep %}
{% endstepper %}

{% hint style="info" %}
Supported types: Byte, Short, Int, Long, Float, Double, String, ByteArray, IntArray, LongArray, List, Compound.
{% endhint %}

## Delete tags

{% stepper %}
{% step %}

### Select the tag

Select the tag you want to delete.
{% endstep %}

{% step %}

### Delete

Press `Delete` or click the delete button.
{% endstep %}

{% step %}

### Result

The tag and all of its children (if any) will be removed.
{% endstep %}
{% endstepper %}

## Search / filter

{% stepper %}
{% step %}

### Start searching

Click the search icon, or type in the search bar.
{% endstep %}

{% step %}

### Filter results

The tree filters to matching nodes.
{% endstep %}

{% step %}

### Matching scope

Search matches:

* **Keys**: tag names
* **Values**: tag values
* **Types**: tag type names
  {% endstep %}

{% step %}

### Restore full tree

Clear the search to show everything again.
{% endstep %}
{% endstepper %}

## Sidebar info

The left sidebar shows:

* **Item icon** (rendered)
* **Item ID** (for example `minecraft:diamond_sword`)
* **Stack count** (for example `x1`)
* **Component count** (total)

## Saving and tools

* Press `Ctrl+S` to save to the item (Creative only).
* Advanced Mode also provides **Export** and **Import** for NBT files.
* Use **Copy NBT** to copy the full tree as text.

## Tips

* If you mess up, just close without saving.

  The original item stays unchanged.
* The tree is collapsed by default.

  Set `treeExpandedByDefault: true` to auto-expand.
* Switch back to Easy Mode anytime for common edits.


---

# 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, and the optional `goal` query parameter:

```
GET https://rabbit-6.gitbook.io/ankinbt-wiki/english-en_us/user-guide/advanced-mode.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
