# Esc 菜单

**Esc** 菜单也是使用贴图实现，我们替换 **Esc** 菜单内的文本为贴图，并不断调整位置以实现像下图这样的效果：

![](/files/r9tG8KvP5mRXkyo0zo78)

第一步：我们同样需要替换原版资源包内的语言文件来实现 **Esc** 文本的替换。参考顶部显示一节的教程，找到原版资源包内的 **assets/minecraft/lang/zh\_cn.json**。

第二步：在 **ItemsAdder** 插件内的 **resource\_pack/assets/minecraft/lang** 内创建同样名称的文件。文件夹不存在的，自行创建即可。

v.3.3.0 版本以后为：`ItemsAdder/contents/_iainternal/resourcepack/minecraft/lang`。

第三步：在第一步找到的文件中找到 **Esc** 菜单内出现的文本，并将其复制到第二步创建的新文件夹中，并在第一行前面和最后一行后面各新起一行，用大括号括起，最后一个文本的最后不能再有括号，例如下面就是一个示例：

```
{ # <----- 前后各有括号
  "menu.disconnet": "离开游戏按钮文本",
  "menu.game": "Esc顶部的文本",
  "menu.returnToGame": "返回游戏按钮文本" # <----- 最后一个文本的最后不能再有括号
} # <----- 前后各有括号
```

第四步：绘制自己的 **Esc** 菜单想要的图案，一般分辨率 **256 x 256**，并按照贴图一节的教程自行配置好该贴图的配置，特别是替换的字符。

第五步：将替换的字符输入到 `menu.disconnet` 文本中，也就是离开游戏按钮文本。这样配合 **256 x 256** 分辨率，贴图正好覆盖到整个 **Esc** 菜单。

第六步：如果你还想在 **Esc** 菜单显示你的服务器 **Logo** 在最顶部，你可以同样绘制贴图，并将替换的字符输入到 `menu.game` 文本中，也就是**Esc**顶部的文本。


---

# 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://docs.superiormc.cn/itemsadder-doc/tie-tu/esc-cai-dan.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.
