跳到正文

Custom Creative Tabs

作者:Goldorion

Add custom creative tabs with simple JSON files

收藏

介绍

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

Add your own creative tabs to the game with a simple JSON config file!

 

Creating Creative tabs

Each creative tab requires its own JSON file that needs to be placed in the config directory (…/config/cct/).

  • icon: The registry name of the item that should be used as its icon.
  • enable_search_bar: (Optional) If true, a search bar will be added to the creative tab.
  • items: A list of String that is taking registry names of items that will be added to this creative tab.

        Note: When using a Minecraft’s item, writing minecraft: before the item’s id is not required. However, `modid:` is required if an item from another mod is desired.

 

It is important to note that a creative use a translated text, but they are not included with this mod. An external resource pack is required to replace itemGroup.registryName in the creative menu. registryName is the file’s name (excluding the extension).

 

If you want to generate a JSON file, you can use the new command included with this mod that will take all parameters to make the JSON file for you.

/cct <registryName> <icon> <enableSearchBar> <items> where <registryName>  is a simple word for the file’s name, <enableSearchBar> is true or false and <items> is the rest of the command and will take all item’s registry names that should be added. However, concerning this last one, Minecraft will not display a list as for the icon.

 

Example

In the following example, the diamond block will be displayed as the icon and a search bar will be included for this creative tab.

{

“icon”: “minecraft:diamond_block”,

“enable_search_bar”: true,

“items”: [

“minecraft:dirt”,

“minecraft:diamond”,

“minecraft:diamond_sword”,

“gold_ingot”

]

}

 

In this second example, the cake is displayed as the icon and the creative tab contains no search bar.

{

“icon”: “cake”,

“items”: [

“cake”,

“milk_bucket”

]

}

 

 

常见问题

Custom Creative Tabs 支持哪些 Minecraft 版本?

Custom Creative Tabs 支持 Minecraft Java 版 1.19.3,可用的加载器:Forge。下载时注意选择和你游戏版本一致的文件。

Custom Creative Tabs 怎么安装?

先用 PCL2 或 HMCL 启动器安装对应版本的 Forge,再把下载的 .jar 文件放进游戏目录的 mods 文件夹,重新启动游戏即可。开启了版本隔离的,mods 文件夹在 versions/版本名 下面。

评论

登录后评论和评分

Goldorion 的其他作品

查看全部 →