ConfigAnytime Mod allows Forge configurations to be set up at any point in time. This mod supports Forge’s configuration system during the coremod and tweaker loading stage. It registers a config class automatically as soon as any property from that class is read.

Features:

  • Allows Forge configurations to be set up at any point in time.
  • Supports using Forge’s configuration system during the coremod and tweaker loading stage.
  • Registers @Config classes automatically through a static initializer whenever any property from the config class is read.
  • Includes Maven dependency support through the CleanroomMC repository.

How to Use:

  1. Add the CleanroomMC Maven repository and the dependency entry to your build file so the project can access the API.
    repositories {
        maven {
            url 'https://maven.cleanroommc.com'
        }
    }
    
    dependencies {
        implementation 'com.cleanroommc:configanytime:1.0'
    }
  2. Create a config class with the @Config annotation and define your config properties inside it, such as boolean or integer fields.
  3. Place a static initializer block after all config properties and call ConfigAnytime.register(ConfigClass.class); inside it so registration runs automatically when any property is read.
    @Config(modid = "configanytime")
    public class ConfigClass {
    
        public static boolean configBooleanProperty = true;
        public static int configIntProperty = 42;
    
        // Static initializers go after the properties!
        // This will run automatically when you retrieve any properties from this config class
        static {
            ConfigAnytime.register(ConfigClass.class);
        }
    
    }

ConfigAnytime Mod Download Links

For Minecraft 1.12.2

Forge version: Download from Server 1 – Download from Server 2

Click to rate this post!
[Total: 0 Average: 0]
QUICK MINECRAFT SURVEY · ONE TAP
Mods & Modpacks

How do you usually discover new mods to try out?

9 responses · See the full results →