Modscraper Modscraper Minecraft
JasonConfig logo

JasonConfig

Mod

by jeducklet

A replacement for Forge's Config system, powered by JSON

Type

Mod

CurseForge Downloads

4,970,248

CurseForge ID

1186372

Last Updated

Nov 6, 2026

Description

This is a LIBRARY mod, if you are a user just INSTALL it, do not read below! 

 

For Developers ---

Adding the dependancy [

    Just use CurseMaven, the repository for that is here, https://www.cursemaven.com/
    Add the dependency using the snippet in the needed version in Files

    example (not the right mod)
    implementation "curse.maven:cloth-config-348521:5987045"

]

Pros and Cons vs Forge's config

-Pros ----------------------------------

  • Uses JSON instead of TOML, making it more reliable (For example, Forge Configs do not easily support empty lists and can break when using them)
  • Compatible with reading and writing many more Java / Minecraft classes than Forge configs (For example, Vec3 cannot be written or read to a forge config, JasonConfig has no issues with it because of JSON objects)
  • Simpler to write in code while still being similar to how you create Forge config classes (see below)

-Cons ----------------------------------

  • Slightly less user readable because its in JSON format
  • Experimental, while I havn't found bugs yet I'm sure some will come, I'm only one guy after all
  • No sided configs, technically while if you just use a value on one side, it'll take that side's version of the config (so dedicated server and client specific configs should work fine), there are no configs per world like "serverconfigs" work

 

Example Config (Can also be found in the "api" package of the mod once you add it to your dependencies)

Everything you need in the "api" package is well documented and should be referred to

public class SimpleExampleConfigClass {
public static final Config EXAMPLE_CONFIG = new Config(MODID + "-example_config");
///The following config values are called with the {<code>EXAMPLE_CONFIG</code>} Config passed in, this automatically adds it to the Config
public static final ConfigValue<Float> EXAMPLE_FLOAT = new ConfigValue<>(10f, "exampleFloat", EXAMPLE_CONFIG);
///Comments are placed in order of declaration, so this comment will be below {<code>EXAMPLE_FLOAT</code>} and above {<code>EXAMPLE_LIST</code>}
public static final ConfigComment EXAMPLE_COMMENT = new ConfigComment("This is a list!", EXAMPLE_CONFIG);
public static final ConfigValue<List<String>> EXAMPLE_LIST = new ConfigValue<>(List.of("value1", "value2", "value3", "value4"), "exampleList", EXAMPLE_CONFIG);
public static final ConfigComment VEC3_COMMENT = new ConfigComment("This is a Vec3! Many Java classes that don't work in Forge configs will work here!", EXAMPLE_CONFIG);
public static final ConfigValue<Vec3> EXAMPLE_VEC3 = new ConfigValue<>(new Vec3(123,123,123), "exampleVec3", EXAMPLE_CONFIG);

///This method must be called in your mod's Main class
/// You will need to call the {<code>register()</code>} method on the {<code>Config</code>} you declared
/// and add any {<code>ConfigValue<?></></code>} variables you created if you did not assign them in the constructor
public static void init()/* This method can be called anything, init(), register(), etc*/ {
EXAMPLE_CONFIG.register();

///EXAMPLES OF GRABBING VALUES
//EXPLICIT (Very similar to Forge's Config)
SimpleExampleConfigClass.EXAMPLE_FLOAT.get();
}
}

Recommended Gear

Affiliate

Hardware and extras that pair well with this mod.

As an Amazon Associate I earn from qualifying purchases.

Similar Mods

Included in Modpacks (65)

Show fewer
DeceasedCraft - Urban Zombie Apocalypse DeceasedCraft - Urban Zombie Apocalypse Ages Of War (Nukes,Bombs and Guns!!) Ages Of War (Nukes,Bombs and Guns!!) The Last War - Guns And Adventure (Survivor's World with Guns) | QUESTS UPDATE! The Last War - Guns And Adventure (Survivor's World with Guns) | QUESTS UPDATE! The Pioneers The Pioneers Izakji's Zombie Apocalypse II Izakji's Zombie Apocalypse II TACZ LIBRARY TACZ LIBRARY [TaCZ] Guns & Customs - Beta Entry [TaCZ] Guns & Customs - Beta Entry DEADZONE - Multiplayer Zombie Apocalypse DEADZONE - Multiplayer Zombie Apocalypse Lees Zombie Apocalypse - Fallen Earth Lees Zombie Apocalypse - Fallen Earth SkyBlock Horror SkyBlock Horror Primal Apocalypse - Unusual Survival with Dinosaurs, Guns and Quests | Prehistoric Apocalypse Primal Apocalypse - Unusual Survival with Dinosaurs, Guns and Quests | Prehistoric Apocalypse Enchanted Genesis Enchanted Genesis BeanPack: Regurgitated BeanPack: Regurgitated Beyond Zombie Beyond Zombie I AM LEGEND -  Hardcore Zombie Apocalypse I AM LEGEND - Hardcore Zombie Apocalypse SurviveArchive - A Blue Archive modpack SurviveArchive - A Blue Archive modpack B.O.M.P Progression Based Rpg. B.O.M.P Progression Based Rpg. HeroCraft made by DieAvengers3 HeroCraft made by DieAvengers3 Jurassic World - Apocalypse Edition Jurassic World - Apocalypse Edition Blockalypse - A Modern Zombie Apocalypse Blockalypse - A Modern Zombie Apocalypse TACZcraft TACZcraft Last DayZ of Craft Last DayZ of Craft R.M. Apocalyptic Zombies R.M. Apocalyptic Zombies No Man’s Land: Z No Man’s Land: Z ButterSMP Official Pack ButterSMP Official Pack Benk's Medieval Minecraft Reloaded Benk's Medieval Minecraft Reloaded [TACZ] FOAT [TACZ] FOAT A Quite Place remastered A Quite Place remastered GunsCraft - ByLupin GunsCraft - ByLupin Jurassic era Jurassic era Dead Dawn - Realistic Zombie Apocalypse Dead Dawn - Realistic Zombie Apocalypse War of The Worlds 2005 2: Electric Boogaloo War of The Worlds 2005 2: Electric Boogaloo Zombie Fungal Infection Zombie Fungal Infection Arthropod Takeover Arthropod Takeover Generic Wasteland Generic Wasteland MMW - Minecraft My Way MMW - Minecraft My Way DeadZone Brasil - DeceasedCraft DeadZone Brasil - DeceasedCraft Project Z - Zombie Apocalypse Project Z - Zombie Apocalypse GregTech Apocalypse GT-A GregTech Apocalypse GT-A Messed Up Cozy Pack Messed Up Cozy Pack Winter Leveling Winter Leveling Warspire Warspire The Last Province zombie apocalypse The Last Province zombie apocalypse Our Way Of Life Our Way Of Life Aphelyon Aphelyon Fancy's Last Stand Fancy's Last Stand Redwolf's Crazy World Redwolf's Crazy World Project SCP (Discontinued) Project SCP (Discontinued) Dispatch Dispatch Soldier On Soldier On GUILTY'S MEGAPACK GUILTY'S MEGAPACK Zone Craft Zone Craft The Silly Shenanigoons - Barebones REDUX The Silly Shenanigoons - Barebones REDUX Resurgence of the Damned: Further West Resurgence of the Damned: Further West Revelations Revelations Reclaiming The Lost World Reclaiming The Lost World Iron Garden Presents - Whiskey Business Iron Garden Presents - Whiskey Business Nationcraft by Emmet Nationcraft by Emmet Castigo's Castigo's Dimmas91: Legacy of Creation Dimmas91: Legacy of Creation Dank Division Dank Division Vision-Craft.net Vision-Craft.net NerdyCraft Recaffeinated NerdyCraft Recaffeinated Undead Lands Undead Lands Recraft S7 Deceased Craft Recraft S7 Deceased Craft

External Resources