Mods
Resource Packs
Data Packs
Modpacks
Shaders
Plugins
Mods Resource Packs Data Packs Plugins Shaders Modpacks
Get Modrinth App Upgrade to Modrinth+
Sign in
ModsPluginsData PacksShadersResource PacksModpacks
Sign in
Settings
James's Config Lib

James's Config Lib

A lightweight, extendable, simple config library for forge and fabric

1,771
2
Library

Compatibility

Minecraft: Java Edition

1.20–1.20.4
1.19.x
1.18.x
1.17.1

Platforms

Fabric
Forge
NeoForge
Quilt

Supported environments

Client-side
Server-side
Client and server

90% of ad revenue goes to creators

Support creators and Modrinth ad-free with Modrinth+

Links

Report issues View source Visit wiki

Creators

itsmenotjames
itsmenotjames Owner

Details

Licensed MIT
Published last year
Updated last year
DescriptionChangelogVersions

James's config mod is a lightweight config mod for easily adding extendible configs. There are two built-in "types" of configs: Registry configs and Setting configs. Registry configs are configs which can have any amount of objects, which will all be read into the config. Each non-primitive object in a registry config needs to specify its type. On the other hand, setting configs have a set amount of objects, each of which are a certain type. Because of this, setting configs do not need to specify types.

Developer Docs- Ignore if you are a user

Depending on using maven

Adding The Repository

I am using modrinth maven to host these files (too lazy to set up a proper maven repo lol). To add it, add this to your repositories block in your build.gradle:

repositories {
    maven {
        name = "Modrinth Maven"
        url = "https://api.modrinth.com/maven"
    }
}

Adding the dependency

To add the dependency, add this to the dependencies block in your build.gradle:

dependencies {
    implementation(fg.deobf("maven.modrinth:config-lib:VERSION-MODLOADER"))
}

Version is the version of the lib (e.g 1.2) and loader is the loader (for fabric and quilt, this is fabric, for forge and neoforge, this is forge)

Making Your first config

To make your first config, look at the common/src/main/java/net/vakror/jamesconfig/config/example directory. this is where examples are placed. There are examples for both registry config and setting configs.

Modrinth is open source.

app-ads@1633f40

© Rinth, Inc.

Company

TermsPrivacyRulesCareers

Resources

SupportBlogDocsStatus

Interact

Discord X (Twitter) Mastodon Crowdin
Get Modrinth App Settings
NOT AN OFFICIAL MINECRAFT SERVICE. NOT APPROVED BY OR ASSOCIATED WITH MOJANG OR MICROSOFT.