Lite Config

Quick rating

Lite Config

No reviews yet

A minecraft JSON5/TOML configuration library

QoL & Tweaks
Mod Loaders
NeoForge
Fabric
Minecraft
26.2

Community voices

Reviews

Versions
Loading versions…
Match includes

Click once to include, again to exclude, again to clear

Rating Any
Any 0.5 1.0 1.5 2.0 2.5 3.0 3.5 4.0 4.5 5.0
Min
Max
Play Status
Reviews
Time Played
hrs+
Verified developers only
Has developer response
List view
Grid view
Compact view
Sort by
Date
Rating
Helpful
Unhelpful
Edited
Sort ascending
Delete this review?

This removes your review from the project. You can write a new review after.

Review submitted for moderation

Your review has been sent to moderators, who will check that it meets our guidelines before it appears publicly.

No reviews yet. Be the first to review this project!

Get it on

Available Platforms

About

Project Details

Type
Mod
Latest Version
easyconfig-neoforge-2.0.0.jar

For authors

Embed Badge

If you're the author of this project, you can embed a live badge anywhere that supports HTML or Markdown. It updates automatically whenever ratings change.

Custom banner text
ModDex rating badge preview

Use HTML for any page that supports it, or Markdown for README files and Markdown-based descriptions.

Identifiers

Platform IDs

CurseForge ID

Resources

External Links

About

Description

Easy Config

Easy Config is a JSON5/TOML config library for Minecraft mods on Fabric and NeoForge. You just annotate a plain Java class with @Config, hand it to a builder, and get back a ConfigHolder that handles file path resolution, read/write operations, corrupt-file recovery, copies, validation, and lifecycle events.

What Easy Config does:

  • Configuration data layer: Easy Config handles config files, including paths, loading, saving, default values, corruption recovery, atomic writes, and JSON5/TOML formats.
  • Safe state management: provides validated snapshots, copies, runtime updates, resets, and custom state cloning.
  • Async and immutable configs: choose synchronous, asynchronous, or immutable holders depending on your threading and lifecycle needs.
  • Restart guards: mark fields as restart-only so runtime updates cannot change values that require a game restart.
  • Custom update API: update and updateAndSave return an UpdateResult with success status and validation violations.
  • Fine-grained failure policies: independently control how read, write, and update failures are handled, from graceful fallback to strict exceptions.
  • Lifecycle and event listeners: hook into config load, save, update, and reset events, or use config-level hooks for normalization and validation.
  • Config groups: manage multiple config files through a single holder, with independent formats and failure recovery.
  • Customizable entries: control file paths, field names, comments, ignored fields, and other persistence details.

Outside Easy Config's scope:

  • Config screen: Easy Config is a data layer — it does not render UI by itself.
  • Client/server sync: use UpdateResult or onUpdate to detect changes and dispatch packets.

Documentation: Wiki

Setup

Artifacts are published to Maven Central under the group com.gmalvestiti.minecraft, with one artifact per loader:

Loader Artifact
Fabric easyconfig-fabric
NeoForge easyconfig-neoforge

The library version tracks the Minecraft major version family, not the loader version:

Minecraft Easy Config
1.21.x 1.x.x
26.x.x+ 2.x.x

Embedded vs. standalone: Embedding (via include / jarJar) bundles Easy Config inside your mod jar so players install nothing extra. Standalone requires players to have Easy Config installed as a separate mod.

Fabric — standalone:

repositories {
    mavenCentral()
}

dependencies {
    modImplementation 'com.gmalvestiti.minecraft:easyconfig-fabric:1.0.0' // or 2.0.0 for 26+
}

Declare the dependency so the loader refuses to start without it:

{
  "depends": {
    "easyconfig": ">=1.0.0" // or 2.0.0 for 26+
  }
}

Fabric — embedded:

repositories {
    mavenCentral()
}

dependencies {
    modImplementation 'com.gmalvestiti.minecraft:easyconfig-fabric:1.0.0' // or 2.0.0 for 26+ 
    include 'com.gmalvestiti.minecraft:easyconfig-fabric:1.0.0' // or 2.0.0 for 26+
}

NeoForge — standalone:

repositories {
    mavenCentral()
}

dependencies {
    implementation 'com.gmalvestiti.minecraft:easyconfig-neoforge:1.0.0' // or 2.0.0 for 26+
}

Declare the dependency in META-INF/neoforge.mods.toml:

[[dependencies.yourmodid]]
modId = "easyconfig"
type = "required"
versionRange = "[1.0.0,)" # or 2.0.0 for 26+
ordering = "NONE"
side = "BOTH"   

NeoForge — embedded:

repositories {
    mavenCentral()
}

dependencies {
    jarJar(implementation('com.gmalvestiti.minecraft:easyconfig-neoforge:1.0.0') { // or 2.0.0 for 26+
       version { 
           strictly '[1.0.0,)' // or 2.0.0 for 26+
           prefer '1.0.0' // or 2.0.0 for 26+
       } 
    })
}

Quickstart

The three terminal builder methods correspond to three threading models:

Method Thread safety Best fit
create() Caller's thread only Regular single-threaded config
createAsync() Safe from any thread Shared or background access
createImmutable() Read-only, safe from any thread Config that never mutates at runtime

Declare the config class. Fields must be public, initialized to their defaults, and the class must have a public no-argument constructor.

@Config(name = "mymod") // format defaults to JSON5
public final class MyModConfig {
    public boolean showHints = true;
    public int hudScale = 2;
}

or for TOML:

@Config(name = "mymod", format = ConfigFormat.TOML)
public final class MyModConfig {
    public boolean showHints = true;
    public int hudScale = 2;
}

Create the holder once during mod initialization and keep it for the lifetime of the mod. create() resolves the file path, validates the model, loads any existing file (or writes the defaults if none exists), and validates the loaded state — the holder is ready to read immediately after it returns:

public final class MyMod implements ModInitializer {

    public static final ConfigHolder<MyModConfig> CONFIG = EasyConfig.holder(MyModConfig.class)
        .modId("mymod")
        .create();
}

Read through data(), mutate through update / updateAndSave:

if (MyMod.CONFIG.data().showHints) {
    // ...
}

MyMod.CONFIG.updateAndSave(config -> config.hudScale = 3);

That writes config/mymod.json5:

{
  "showHints": true,
  "hudScale": 3
}

Screenshots

Gallery

This project has no gallery images yet.

Versions

Files

Relations

Project Relations

More like this

Similar Mods

Suggestions use data such as tags, dependencies, dependents, descriptions, titles, and more to rank how much they overlap with this mod.

On ModDex

Community snapshot

0
Ratings
0
Followers
0
In stacks

By the numbers

Statistics

<1,000
Downloads
Last Updated
Created
Last synced
When ModDex last fetched this project from CurseForge or Modrinth. Every project is re-checked on a schedule, and any project that ships a new file is synced automatically within hours of the release.
New file updates sync automatically
How syncing works