SSCL Wiki

Creating a Config

Use SSCL.create() to create a config.

Config config = SSCL.create(
        MOD_ID,
        "ExampleMod/config.toml",
        ConfigSide.CLIENT
);

The arguments are:

  • modId: The mod that owns the config.
  • file: The config file path relative to Minecraft's config folder.
  • side: The side the config belongs to. See Config Side.

File generation for example:

  • "example.toml" creates config/example.toml
  • Or "ExampleMod/config.toml" creates config/ExampleMod/config.toml

The file must end with .toml.