Cloth Config
  • Introduction to Cloth Config
  • Frequently Asked Questions
  • Setup Cloth Config
    • Setup with Fabric
    • Setup with Forge
  • Using Cloth Config
    • Creating a Config Screen
    • Saving the Config
    • Creating a Config Category
    • Creating a Config Option
    • Building the Config Screen
  • Advanced
    • Creating a Dropdown Menu
    • ModMenu Integration
  • Auto Config
    • Introduction to Auto Config 1u
    • Setup with Gradle
    • Creating a Config Class
    • Registering the Config
    • Reading the Config
    • Generating a Cloth Config Screen
    • Annotations
    • Post-Validation
    • Partitioning the Config
    • Custom Gui Handlers
Powered by GitBook
On this page
  1. Using Cloth Config

Creating a Config Category

PreviousSaving the ConfigNextCreating a Config Option

Last updated 4 years ago

Was this helpful?

CtrlK

Was this helpful?

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.