All Mods Resource Packs Data Packs Shaders Modpacks Plugins
Smootheez Config Lib

Smootheez Config Lib

by Smootheez • Downloads: 0 • Followers: 0
Description
Gallery
Changelog
Versions

📦 Smootheez Config Lib (SCL)

A utility mod designed to simplify configuration handling for Minecraft modding.
Primarily developed for my own mods, but freely available for public use.


❓ What is SCL?

Smootheez Config Lib (SCL) provides an easier and cleaner way to manage configurations for Minecraft mods.
It removes boilerplate and offers a simple interface for:

  • ✅ Config file management
  • 🛠️ Automatic config screen generation
  • ⚙️ Automatic config file generation

🖼️ In-Game Previews

🔧 Standard Config Screen

Config Preview

📝 Config Screen with Descriptions

With Description

🗂️ Edit Value in OptionList

Edit List

➕ Add Value to OptionList

Add Value

❗ Confirmation Screen

Confirmation


🚀 Getting Started

🏗️ Step 1 – Add Repository

In your build.gradle:

repositories {
    maven {
        url "https://jitpack.io"
    }
}

📦 Step 2 – Add Dependency

Using version from gradle.properties:

dependencies {
    modImplementation "com.github.smootheez:scl:${project.scl_version}"
}

Or use the version directly:

dependencies {
    modImplementation "com.github.smootheez:scl:[version]"
}

💡 Example Usage

🧱 Step 1 – Create a Config Class

@Config(name = "example_config", gui = true)
public class ExampleConfig {
    public static final ConfigOption<Integer> INT_TEXT = ConfigOption.create("intText", 0, -5, 100);
    public static final ConfigOption<Double> DOUBLE_TEXT = ConfigOption.create("doubleText", 0.0, 0.0, 2.0);
    public static final ConfigOption<Integer> INT_SLIDER = ConfigOption.create("intSlider", 0, -5, 100).asSlider();
    public static final ConfigOption<Double> DOUBLE_SLIDER = ConfigOption.create("doubleSlider", 0.0, 0.0, 2.0).asSlider();
    public static final ConfigOption<Double> DOUBLE_SLIDER_PERCENTAGE = ConfigOption.create("doubleSliderPercentage", 0.0, 0.0, 2.0).asSliderPercentage();
    public static final ConfigOption<Boolean> BOOLEAN = ConfigOption.create("boolean", false);
    public static final ConfigOption<OptionList> LIST = ConfigOption.create("list", "example_value_1", "example_value_2", "example_value_3");
    public static final ConfigOption<ExampleEnum> ENUM = ConfigOption.create("enum", ExampleEnum.EXAMPLE_VALUE_1);
}

🧩 Step 2 – Register the Config

In your fabric.mod.json:

"entrypoints": {
    // ...existing entrypoints
    "scl": [
        "dev.smootheez.scl.example.ExampleConfig"
    ]
}

✅ That's it! SCL will automatically generate:

  • The config file
  • The config screen (requires ModMenu)

📌 Note: The config screen will only be generated if:

  • gui = true is set
  • The config name matches your mod ID

📥 Download


🐞 Issue Tracker

Found a bug or have a feature suggestion? Submit an issue here: GitHub Issues


⚠️ Important Notes

  • ✅ Compatible with Minecraft 1.20.1+
  • 📜 Licensed under the MIT License

☕ Support Me

If you find this project helpful and want to support my work, consider donating:

paypal

How to Install Smootheez Config Lib (Mod)

Smootheez Config Lib by Smootheez is verified for Fabric across Minecraft versions 1.20.1, 1.20.2, 1.20.3, 1.20.4, 1.20.5, 1.20.6, 1.21, 1.21.1 (latest release: 0.2.2-1.20.2, file size: 75 KB). Follow the steps below to install it safely from ModCraft.tv:

  1. Click the Download button above and select your Minecraft version (1.20.1, 1.20.2, 1.20.3, 1.20.4, 1.20.5, 1.20.6, 1.21, 1.21.1) and platform (Fabric).
  2. Make sure you have the compatible loader or environment installed for Fabric.
  3. Move the downloaded Smootheez Config Lib file into your Minecraft .minecraft/mods folder and launch the game.

All Versions

+ Add Version
Name Game version Platforms Published Downloads Actions
1.20.2
Fabric
last yr. 1
1.21.x
Fabric
last yr. 1
1.21.x
Fabric
last yr. 1
1.21.x 1.20.x
Fabric
last yr. 1
1.20.x
Fabric
last yr. 1
1.20.2
Fabric
last yr. 1
1.20.1
Fabric
last yr. 1
1.21.x 1.20.x
Fabric
last yr. 1
1.20.x
Fabric
last yr. 1
1.20.2
Fabric
last yr. 1
1.20.2
Fabric
last yr. 1
1.20.x
Fabric
last yr. 1
1.21.x
Fabric
last yr. 1
1.20.x
Fabric
last yr. 1
1.20.4
Fabric
last yr. 1
  • Remove unnecessary config screen
  • Rewrite the mapping from yarn into mojang mapping
  • Now have back and save & exit button
  • Add confirmation screen
  • Rearange the title and the search bar
  • Support slider for integer and double value
  • Fix some bugs
  • Rewrite the mapping from yarn into mojang mapping
  • Now have back and save & exit button
  • Add confirmation screen
  • Rearange the title and the search bar
  • Support slider for integer and double value
  • Fix some bugs
  • Rewrite the mapping from yarn into mojang mapping
  • Now have back and save & exit button
  • Add confirmation screen
  • Rearange the title and the search bar
  • Support slider for integer and double value
  • Fix some bugs
  • Rewrite the mapping from yarn into mojang mapping
  • Now have back and save & exit button
  • Add confirmation screen
  • Rearange the title and the search bar
  • Support slider for integer and double value
  • Fix some bugs
  • Rewrite the mapping from yarn into mojang mapping
  • Now have back and save & exit button
  • Add confirmation screen
  • Rearange the title and the search bar
  • Support slider for integer and double value
  • Fix some bugs
  • Updated from 1.20.3 into 1.20.5-1.21.5
No changelog was specified.
No changelog was specified.
No changelog was specified.
Smootheez Config Lib Icon
Download Smootheez Config Lib
Select game version
Select platform