#
Create a Custom Tab
Creating or configuring a custom tab, is done through JSON from either a Resource or Data pack. For this explanation, we will be using a resource pack.
When making changes to the resource or data pack, you will need to restart the game in order to view those changes. This is due to the way the tabs are created!
You can define multiple tabs inside a single pack. You do not need to create a custom one for each one
#
Getting Started
The first thing you want to do is, create a new, empty resource pack. To save you some time, you can also download the SKELETON PACK with all the base files already created.
Inside your resource pack, you will need the following folder layout:
|-- Pack Folder
|-- assets
|-- minecraft
|-- lang
|-- en_us.json
|-- morecreativetabs
|-- my_tab.json
|-- pack.mcmeta
When using the SKELETON PACK, these files/folders will already be created for you
#
Creating your first tab
To create a new creative tab, create a file inside the morecreativetabs
folder. You can call this whateveryouwant.json
. This file will tell the mod how to configure the creative tab.
You will also need a lang file inside the lang
folder. For this example, we will use en_us.json
which is the english version of the tab names.
Below is a sample config file, with an explanation at the bottom:
{
"tab_enabled": true,
"tab_name": "lighting",
"tab_icon": "minecraft:lantern",
"tab_items": [
{
"name": "minecraft:light",
"hide_old_tab": true,
"nbt": "{BlockStateTag: {level:\"4\"}}"
},
{
"name": "minecraft:torch"
},
{
"name": "minecraft:soul_torch"
},
{
"name": "minecraft:candle"
}
]
}
Explanation:
"tab_enabled", "tab_name", "tab_icon" and "tab_items" must always be present, or the file will not load
#
More examples
Here you can download a couple of pre-made packs, to see how they work and make your own from them.
- Disable Brewing -> Disables the Brewing Tab