> For the complete documentation index, see [llms.txt](https://3504743864.gitbook.io/oraxen-wiki/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://3504743864.gitbook.io/oraxen-wiki/jian-rong-cha-jian/trmenu-ding-zhi-gui-jie-mian.md).

# TrMenu - 定制GUI界面

TrMenu不仅支持Oraxen项目，还允许您在配置中轻松使用它们。这样你就可以为你的项目创建很酷的图标，或者直接显示套件的内容......或者用自定义材质创建一个令人难以置信的酷炫菜单

## 如何使用Oraxen物品作为图标？

一个oraxen项目不是一个默认的材料，所以你必须使用`<oraxen:item_id>`，而不是使用一个默认的材料名称，它给出了这样的东西

```yaml
  mats: '<oraxen:your_item_id>'
```

## 如何使用oraxen创建自定义GUI?

这个概念的灵感来自于[SimplySarc的一个视频](https://www.youtube.com/watch?v=bv_wYNs5L6M)，他展示了可以创建具有如此大的材质的项目，以至于它可以与minecraft的物品重叠

这允许你创建新的GUI，而无需移除现有的GUI

![他看起来是这样的](/files/-MJ66yVj_LFtgvsfQF4p)

我建议你看他的视频来充分理解这个概念，然后，你可以看看gui.yml文件，看看两个创建自定义菜单的示例项目

```yaml
example_upper_section:
  displayname: "&0"
  material: DIAMOND
  excludeFromInventory: true
  Pack:
    generate_model: false
    model: upper_section
```

这是上段的项目，它使用的是SimplySarc的默认模型


---

# 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://3504743864.gitbook.io/oraxen-wiki/jian-rong-cha-jian/trmenu-ding-zhi-gui-jie-mian.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.
