Mineuniverse
Log in Register
Mods

Cryonic Config

Chill Minimal Config API
by slainlite
Download Claim this project
15,630,818 downloads
0 likes
Updated Jun 30, 2026
0 hypes
API and Library

Cryonic Config

  • Cross-version easy to port config tool with minimal dependencies
  • Specifically targeting ease of use and portability
  • Cryonic because it's cool as hell

Explanation of Functionality

  • This will store jsons in {minecraft_dir}/config as "mod_id.json"
  • All config files will be read by dictionary in "cryonicconfig.json" on early init
  • Configs are only configurable by editing the jsons directly, no plans of GUI config
  • For ease of portability, synced variables are sent directly to a player in chat, and intercepted
  • Hashmaps are used to look up Str to ConfigStorage and Str to Obj (variable)

API

Groovy (build.gradle) Add Dependency

Add Maven:

repositories {
    maven { url "https://api.modrinth.com/maven" }
}

Modern/Architectury:
For only fabric or neoforge, replace ${project.name} with fabric,forge,neoforge

dependencies {
    modImplementation "maven.modrinth:cryonicconfig:fabric-${project.name}:1.0.0+mc${rootProject.minecraft_version}"
}

b1.7.3:

dependencies {
    modImplementation "maven.modrinth:cryonicconfig:babric:1.0.0+mcb1.7.3"
}

Simple Usage:

// You can store or use on the fly, this can be called anywhere
ConfigStorage config = CryonicConfig.getConfig("mod_id");

// You can store ints, doubles, booleans, and strings
// By getting them, you are setting their default value too
// getter format (variable name, default value)
// You cannot reuse variable names! They will be overridden.
config.getInt("varName", 3);
config.getDouble("name", 3.3);
config.getBoolean("var", true);
config.getString("str", "Geronimo!")

// The variable will exist locally on client and server
// If you want a connected server player to use a server config
// You must call, making client use the server's value 
config.sync("varName", playerEntity);

// Feel free to use this format:
CryonicConfig.getConfig("mod_id").getInt("varName", 3);

// You can set variables manually, instead of letting get generate them
// This is also useful for overriding old values
config.setInt("varName", 3);
config.setDouble("name", 3.3);
config.setBoolean("var", true);
config.setString("str", "Geronimo!");

Mark Dependency

In fabric.mod.json:

{
  "depends": {
    "cryonicconfig": "*"
  }
}

In mods.toml/neoforge.mods.toml:

[[dependencies.cryonicconfig]]
modId = "cryonicconfig"
type = "required"
versionRange = "[0,)"
[26.2] NeoForge 1.0.0
MC NeoForge, 26.2
Release 2026-06-20 Get
[26.2] Fabric 1.0.0
MC Fabric, Quilt, 26.2
Release 2026-06-20 Get
[26.1.2+1.0.0] Fabric
MC Fabric, Quilt, 26.1, 26.1.1, 26.1.2
Release 2026-05-31 Get
[26.1.2+1.0.0] NeoForge
MC NeoForge, 26.1, 26.1.1, 26.1.2
Release 2026-05-31 Get
[1.21.11] Fabric 1.0.0
MC 1.21, Fabric, 1.21.8, 1.21.5, 1.21.4, 1.21.1, 1.21.6, 1.21.3, 1.21.7, Quilt, 1.21.2, 1.21.9, 1.21.10, 1.21.11
Release 2025-12-17 Get
[1.21.11] NeoForge 1.0.0
MC 1.21, 1.21.8, 1.21.5, 1.21.4, 1.21.1, 1.21.6, 1.21.3, 1.21.7, NeoForge, 1.21.2, 1.21.9, 1.21.10, 1.21.11
Release 2025-12-17 Get
[1.21.10] Fabric 1.0.0
MC 1.21, 1.21.5, Fabric, 1.21.8, 1.21.9, 1.21.10, 1.21.4, 1.21.3, 1.21.7, 1.21.1, 1.21.6, Quilt, 1.21.2
Release 2025-10-22 Get
[1.21.10] NeoForge 1.0.0
MC 1.21, 1.21.5, 1.21.8, 1.21.9, 1.21.10, 1.21.4, NeoForge, 1.21.3, 1.21.7, 1.21.1, 1.21.6, 1.21.2
Release 2025-10-22 Get
[1.21.9] Fabric 1.0.0
MC 1.21, 1.21.5, Fabric, 1.21.8, 1.21.9, 1.21.4, 1.21.3, 1.21.7, 1.21.1, 1.21.6, Quilt, 1.21.2
Release 2025-10-01 Get
[1.21.9] NeoForge 1.0.0
MC 1.21, 1.21.5, 1.21.8, 1.21.9, 1.21.4, NeoForge, 1.21.3, 1.21.7, 1.21.1, 1.21.6, 1.21.2
Release 2025-10-01 Get
[1.21.8] Fabric 1.0.0
MC 1.21, 1.21.5, Fabric, 1.21.8, 1.21.4, 1.21.3, 1.21.7, 1.21.1, 1.21.6, Quilt, 1.21.2
Release 2025-08-13 Get
[1.21.8] NeoForge 1.0.0
MC 1.21, 1.21.5, 1.21.8, 1.21.4, NeoForge, 1.21.3, 1.21.7, 1.21.1, 1.21.6, 1.21.2
Release 2025-08-13 Get
[1.21.7] Fabric 1.0.0
MC 1.21, 1.21.5, Fabric, 1.21.4, 1.21.3, 1.21.7, 1.21.1, 1.21.6, Quilt, 1.21.2
Release 2025-07-07 Get
[1.21.7] NeoForge 1.0.0
MC 1.21, 1.21.5, 1.21.4, NeoForge, 1.21.3, 1.21.7, 1.21.1, 1.21.6, 1.21.2
Release 2025-07-07 Get
[1.21.6] Fabric 1.0.0
MC 1.21, 1.21.5, Fabric, 1.21.4, 1.21.3, 1.21.1, 1.21.6, Quilt, 1.21.2
Release 2025-06-28 Get
[1.21.6] NeoForge 1.0.0
MC 1.21, 1.21.5, 1.21.4, NeoForge, 1.21.3, 1.21.1, 1.21.6, 1.21.2
Release 2025-06-28 Get
[1.20.6] Fabric 1.0.0
MC 1.20.5, Fabric, 1.20.6, Quilt
Release 2025-02-28 Get
[1.20.6] NeoForge 1.0.0
MC 1.20.5, NeoForge, 1.20.6
Release 2025-02-28 Get
[1.20.4] Fabric 1.0.0
MC 1.20.2, Fabric, 1.20.3, 1.20.1, 1.20, 1.20.4, Quilt
Release 2025-02-28 Get
[1.20.4] NeoForge 1.0.0
MC 1.20.2, NeoForge, 1.20.3, 1.20.1, 1.20, 1.20.4
Release 2025-02-28 Get
[1.20.4] Forge 1.0.0
MC 1.20.2, 1.20.3, 1.20.1, Forge, 1.20, 1.20.4
Release 2025-02-28 Get
[1.19.x] Fabric 1.0.0
MC 1.19.3, 1.19.4, Fabric, 1.19.2, 1.19.1, Quilt, 1.19
Release 2025-02-28 Get
[1.19.x] Forge 1.0.0
MC 1.19.3, 1.19.4, 1.19.2, Forge, 1.19.1, 1.19
Release 2025-02-28 Get
[1.18.x] Fabric 1.0.0
MC 1.18.1, Fabric, 1.18.2, 1.18, Quilt
Release 2025-02-28 Get
[1.18.x] Forge 1.0.0
MC 1.18.1, 1.18.2, Forge, 1.18
Release 2025-02-28 Get
[1.20.1] Fabric 1.0.0
MC Fabric, 1.20.1, 1.20, Quilt
Release 2025-02-28 Get
[1.20.1] Forge 1.0.0
MC 1.20.1, Forge, 1.20
Release 2025-02-28 Get
[1.21.4] Fabric 1.0.0
MC 1.21, 1.21.5, Fabric, 1.21.4, 1.21.3, 1.21.1, Quilt, 1.21.2
Release 2025-02-27 Get
[1.21.4] NeoForge 1.0.0
MC 1.21, 1.21.5, 1.21.4, NeoForge, 1.21.3, 1.21.1, 1.21.2
Release 2025-02-27 Get

More from slainlite

Fence On Slab! [Forge/Fabric/NeoForge]
95,243
Bird Nests
91,049
Hot Kettles
876,101
Entris: Enchanting Tetris [NeoForge/Fabric/Forge]
7,116
Lovely Crops
4,990
Chiseler
26,972

You Might Also Like

Vivecraft
A Minecraft VR mod on a loader of your choice!
9,988,339
Athena
A crossplatform (Forge/Fabric) solution to connected block textures for 1.19.4+
99,799,527
Lodestone
A collection of code used throughout projects under the Lodestar team.
9,914,417
TheDragonLib
A library for most of sokratis12GR's Mods
9,910,232
Multi Mob Library
A library mod containing essential files for Daveyx0's mob mods
9,892,767
FTB Library (Forge) (Legacy)
FTB Library is a library mod that is used for some of our mods.
98,265,314