All Mods Resource Packs Data Packs Shaders Modpacks Plugins
James's Config Lib

James's Config Lib

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

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.

How to Install James's Config Lib (Mod)

James's Config Lib by itsmenotjames is verified for Fabric, Forge, Neoforge, Quilt across Minecraft versions 1.17.1, 1.18, 1.18.1, 1.18.2, 1.19, 1.19.1, 1.19.2, 1.19.3 (latest release: 1.4.1, file size: 99 KB). Follow the steps below to install it safely from ModCraft.tv:

  1. Click the Download button above and select your Minecraft version (1.17.1, 1.18, 1.18.1, 1.18.2, 1.19, 1.19.1, 1.19.2, 1.19.3) and platform (Fabric, Forge, Neoforge, Quilt).
  2. Make sure you have the compatible loader or environment installed for Fabric, Forge, Neoforge, Quilt.
  3. Move the downloaded James's 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.x 1.19.x 1.18.x +1
Fabric
last yr. 1
1.20.x 1.19.x 1.18.x +1
Forge
last yr. 1
1.20.x 1.19.x 1.18.x +1
Forge Neoforge
last yr. 1
1.20.x 1.19.x 1.18.x +1
Fabric Quilt
last yr. 1
1.20.x 1.19.x 1.18.x +1
Forge Neoforge
last yr. 1
1.20.x 1.19.x 1.18.x +1
Fabric Quilt
last yr. 1
1.20.x 1.19.x 1.18.x +1
Forge Neoforge
last yr. 1
1.20.x 1.19.x 1.18.x +1
Fabric Quilt
last yr. 1
1.20.x 1.19.x 1.18.x
Forge Neoforge
last yr. 1
1.20.x 1.19.x
Fabric Forge Quilt
last yr. 1
[1.4.1] 1.4.1-fabric by itsmenotjames on Jan 27, 2024
Download
fix some method clashing
[1.4.1] 1.4.1-forge by itsmenotjames on Jan 27, 2024
Download
fix some method clashing
[1.4] 1.4-forge by itsmenotjames on Nov 05, 2023
Download
# Additions

+ Required Mods for config load (not hard dependencies)
+ Performance analysis (analyzers for default types are included)
+ /config analyze command (runs analysis)
+ reload commands (client and server; reload either a single config or all of them and a sync option for reloading server configs)

# Fixes

+ a malicious client could crash the server

# Technical stuff

+ add a CommandManager
+ add new packet to tell the client to reload
[1.4] 1.4-fabric by itsmenotjames on Nov 05, 2023
Download
# Additions

+ Required Mods for config load (not hard dependencies)
+ Performance analysis (analyzers for default types are included)
+ /config analyze command (runs analysis)
+ reload commands (client and server; reload either a single config or all of them and a sync option for reloading server configs)

# Fixes

+ a malicious client could crash the server

# Technical stuff

+ add a CommandManager
+ add new packet to tell the client to reload
[1.3] 1.3-forge by itsmenotjames on Oct 22, 2023
Download
# Additions

+ New type of config, single object type registry configs
+ Add new example config

# Changes

+ Remove times from logging

# Internal

+ Clean up old code
+ Optimize packet sending and handling
+ Easier way to register managers


# Single Object Type Configs

Configs that contain objects of a single type. Objects inside of these will not need to specify their type, though nested objects may need to. Single Object Type Configs work the same as regular registry configs.

[1.3] 1.3-fabric by itsmenotjames on Oct 22, 2023
Download
# Additions

+ New type of config, single object type registry configs
+ Add new example config

# Changes

+ Remove times from logging

# Internal

+ Clean up old code
+ Optimize packet sending and handling
+ Easier way to register managers


# Single Object Type Configs

Configs that contain objects of a single type. Objects inside of these will not need to specify their type, though nested objects may need to. Single Object Type Configs work the same as regular registry configs.

[1.2] 1.2-forge by itsmenotjames on Oct 14, 2023
Download
Split forge and fabric jars apart
Make SettingConfigObject into an interface
Optimize (~2 millisecond speedup)
[1.2] 1.2-fabric by itsmenotjames on Oct 14, 2023
Download
Split forge and fabric jars apart
Make SettingConfigObject into an interface
Optimize (~2 millisecond speedup)
[1.1] 1.1 by itsmenotjames on Oct 14, 2023
Download
support 1.18+
[1.0] 1.0 by itsmenotjames on Oct 14, 2023
Download
Create mod
James's Config Lib Icon
Download James's Config Lib
Select game version
Select platform