Creating a Config Screen

Call ConfigBuilder.create() to create a new config builder, from there you can set the background, create new categories, disable smooth scrolling, etc.

The title will be automatically translated to the language the user selects, make sure you localize the language in the language file.

Parent Screen is the screen when the user clicks done or cancel, you should put the current screen as the parent screen.

ConfigBuilder builder = ConfigBuilder.create()
        .setParentScreen(parent)
        .setTitle(new TranslatableText("title.examplemod.config"));

You have to create a new config screen builder every single time you open the config menu.

Last updated