跳到正文

TMwU

作者:CryngelDust

Template Menu with Unicode pack (TMwU) for Servers.

收藏

截图

介绍

中文介绍正在准备中,下面暂时显示原文。

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==

  1. Create your texture inside:

minecraft/textures/tmwu/menu

  1. Give the texture an English file name.

Recommendations:

  • Use only letters and numbers.
  • Do not use spaces.
  • Avoid underscores whenever possible.
  1. 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.

常见问题

TMwU 支持哪些 Minecraft 版本?

TMwU 支持 Minecraft Java 版 1.21.4–26.2,共 12 个版本,可用的加载器:Fabric / Forge / NeoForge。下载时注意选择和你游戏版本一致的文件。

TMwU 怎么安装?

把下载的 .zip 文件(不用解压)放进游戏目录的 resourcepacks 文件夹,进游戏后在「选项 → 资源包」里把它移到右边启用。

评论

登录后评论和评分

CryngelDust 的其他作品

查看全部 →