带 Unicode 的模板菜单 (TMwU)
专为需要在无需安装额外插件的情况下对菜单进行视觉自定义的服务端而创建的资源包。
README
TMwU 资源包
此资源包旨在自定义基于物品的菜单外观。
它不会自行创建自定义菜单或提供任何功能。
重要提示
为了获得最佳体验,强烈建议将此模板与支持自定义物品菜单(GUI 系统)的插件、模组或数据包配合使用。
此资源包仅更改菜单的视觉外观。
内置的模板旨在尽可能简化自定义菜单纹理的创建过程,同时易于集成到现有项目中。
== 功能 ==
• 易于使用的自定义物品菜单纹理模板。
• 支持 27 格和 54 格的容器菜单。
• 基于 Unicode 的简单纹理注册方式。
• 完全可自定义的纹理。
• 兼容 Minecraft 1.21.4 及更高版本。
== 预览菜单纹理 ==
27 格箱子
在聊天栏中运行以下命令:
/give @p minecraft:chest[minecraft:custom_name={"text":"\uE200\uE201","color":"white","italic":false}]
这将给你一个使用默认 27 格菜单纹理的箱子。
54 格双箱
在聊天栏中运行以下命令:
/give @p minecraft:chest[minecraft:custom_name={"text":"\uE100\uE000","color":"white","italic":false}] 2
将两个箱子并排放置,使它们合并为一个双箱。
== 添加你自己的菜单纹理 ==
- 在以下位置创建你的纹理:
minecraft/textures/tmwu/menu
- 给纹理起一个英文文件名。
建议:
- 仅使用字母和数字。
- 不要使用空格。
- 尽量避免使用下划线。
- 打开以下文件:
minecraft/font/default.json
你可以使用任何代码编辑器编辑它。
推荐使用 Visual Studio Code (VSCode)。
== 基本示例 ==
{
"providers": [
{
"type": "space",
"advances": {
"\uE100": -48
}
},
{
"type": "bitmap",
"file": "minecraft:tmwu/menu/template.png",
"ascent": 46,
"height": 256,
"chars": [
"\uE000"
]
}
]
}
说明:
- "advances" 控制水平偏移量。
- "ascent" 控制垂直位置。
- "height" 控制渲染大小。
- "file" 指定使用的纹理。
- "chars" 将 Unicode 字符分配给该纹理。
== 创建新的 Unicode 字符 ==
复制上面的 bitmap 部分。
更改 Unicode 值。
例如:
从:
"\uE000"
改为:
"\uE523"
重要提示
每个 Unicode 值必须是唯一的。
切勿重用已分配给其他纹理的 Unicode 字符。
更改 Unicode 值后,复制 bitmap 条目并编辑文件路径以指向你的新纹理。
例如:
{
"type": "bitmap",
"file": "minecraft:tmwu/menu/my_menu.png",
"ascent": 46,
"height": 256,
"chars": [
"\uE523"
]
}
== 使用你的新纹理 ==
如果你使用内置的间距字符,你的命令将如下所示:
/give @p minecraft:chest[minecraft:custom_name={"text":"\uE100\uE523","color":"white","italic":false}] 2
在此命令中:
\uE100 = 水平间距字符。
\uE523 = 你的自定义纹理。
支持
如果在配置模板时遇到任何困难,请随时在我们的 Discord 服务器寻求帮助。选择“TMwU”标签,进入“questions-about-tmwu”线程,并详细描述你的问题。如有必要,你可以附上任何有助于解决问题的配置或可视化组件文件。
TMwU 评测
要预览 TMwU 资源包中包含的纹理,请使用以下任一命令:
/function tmwu:54x
/function tmwu:27x
选择对应你想要显示的纹理预览的命令。
Template Menu with Unicode (TMwU)
A resource pack created specifically for servers that need to visually customize their menus without the need to install extra plugins.
README
TMwU pack
This resource pack is designed to customize the appearance of inventory-based menus.
It does NOT create custom menus or provide any functionality by itself.
IMPORTANT
For the best experience, it is highly recommended to use this template together with plugins, mods, or datapacks that support custom inventory menus (GUI systems).
This resource pack only changes the visual appearance of menus.
The included template is intended to make creating custom menu textures as simple as possible while remaining easy to integrate into existing projects.
== FEATURES ==
• Easy-to-use template for custom inventory menu textures.
• Supports both 27-slot and 54-slot container menus.
• Simple Unicode-based texture registration.
• Fully customizable textures.
• Compatible with Minecraft 1.21.4 and newer.
== PREVIEWING MENU TEXTURES ==
27-Slot Chest
Run the following command in chat:
/give @p minecraft:chest[minecraft:custom_name={"text":"\uE200\uE201","color":"white","italic":false}]
This gives you a chest using the default 27-slot menu texture.
54-Slot Double Chest
Run the following command in chat:
/give @p minecraft:chest[minecraft:custom_name={"text":"\uE100\uE000","color":"white","italic":false}] 2
Place two chests next to each other so they combine into a double chest.
==ADDING YOUR OWN MENU TEXTURES==
- Create your texture inside:
minecraft/textures/tmwu/menu
- Give the texture an English file name.
Recommendations:
- Use only letters and numbers.
- Do not use spaces.
- Avoid underscores whenever possible.
- Open the following file:
minecraft/font/default.json
You can edit it with any code editor.
Visual Studio Code (VSCode) is recommended.
== BASIC EXAMPLE ==
{
"providers": [
{
"type": "space",
"advances": {
"\uE100": -48
}
},
{
"type": "bitmap",
"file": "minecraft:tmwu/menu/template.png",
"ascent": 46,
"height": 256,
"chars": [
"\uE000"
]
}
]
}
Explanation:
- "advances" controls the horizontal offset.
- "ascent" controls the vertical position.
- "height" controls the rendered size.
- "file" specifies which texture is used.
- "chars" assigns the Unicode character to that texture.
==CREATING A NEW UNICODE CHARACTER==
Copy the bitmap section above.
Change the Unicode value.
Example:
From:
"\uE000"
To:
"\uE523"
IMPORTANT
Every Unicode value must be unique.
Never reuse a Unicode character that has already been assigned to another texture.
After changing the Unicode value, duplicate the bitmap entry and edit the file path to point to your new texture.
Example:
{
"type": "bitmap",
"file": "minecraft:tmwu/menu/my_menu.png",
"ascent": 46,
"height": 256,
"chars": [
"\uE523"
]
}
== USING YOUR NEW TEXTURE ==
If you use the included spacing characters, your command will look like this:
/give @p minecraft:chest[minecraft:custom_name={"text":"\uE100\uE523","color":"white","italic":false}] 2
In this command:
\uE100 = horizontal spacing character.
\uE523 = your custom texture.
Support
If you run into any difficulties configuring the template, please feel free to ask for help on our Discord server. Select the "TMwU" tag, head over to the "questions-about-tmwu" thread, and describe your problem in detail. If necessary, you can attach any configuration or visual component files needed to help resolve the issue.
TMwU Review
To preview the textures included in the TMwU Resource Pack, use one of the following commands:
/function tmwu:54x
/function tmwu:27x
Choose the command corresponding to the texture preview you wish to display.
评论 0
登录后参与评分
还没有评论,来抢沙发吧