Creating a Config Category

Category Tabs are shown ONLY when you have more than 1 category.

You can create a new category by calling getOrCreateCategory with the builder:

[...]
ConfigCategory general = builder.getOrCreateCategory(new TranslatableText("category.examplemod.general"));

The category name will be ignored if you only have 1 category created, which means that you can choose to put a dummy placeholder into the category name instead of giving the category an actual name.

Last updated