Язык

Cryonic Config

Cryonic Config

Modrinth

Chill Minimal Config API

785.9k загрузок 58 подписчиков обновлено 16d ago
последняя vneoforge-26.1.2-1.0.0 Modrinth
Babric Fabric Forge Neoforge Quilt b1.7.3 – 26.1.2 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,)"

Версии

Release
neoforge-26.1.2-1.0.0
neoforge · 26.1, 26.1.1, 26.1.2 · 16d ago
306
Release
fabric-26.1.2-1.0.0
fabric, quilt · 26.1, 26.1.1, 26.1.2 · 16d ago
2.8k
Release
neoforge-1.21.11-1.0.0
neoforge · 1.21, 1.21.1, 1.21.2 · 6mo ago
78.5k
Release
fabric-1.21.11-1.0.0
fabric, quilt · 1.21, 1.21.1, 1.21.2 · 6mo ago
78.7k
Release
neoforge-1.21.10-1.0.0
neoforge · 1.21, 1.21.1, 1.21.2 · 8mo ago
41.9k
Release
fabric-1.21.10-1.0.0
fabric, quilt · 1.21, 1.21.1, 1.21.2 · 8mo ago
24.0k
Release
neoforge-1.21.9-1.0.0
neoforge · 1.21, 1.21.1, 1.21.2 · 8mo ago
10.4k
Release
fabric-1.21.9-1.0.0
fabric, quilt · 1.21, 1.21.1, 1.21.2 · 8mo ago
5.4k
Release
neoforge-1.21.8-1.0.0
neoforge · 1.21, 1.21.1, 1.21.2 · 10mo ago
18.1k
Release
fabric-1.21.8-1.0.0
fabric, quilt · 1.21, 1.21.1, 1.21.2 · 10mo ago
39.6k
Release
neoforge-1.21.7-1.0.0
neoforge · 1.21, 1.21.1, 1.21.2 · 11mo ago
**Full Changelog**: https://github.com/matthewperiut/cryonicconfig/compare/1.21.6-1.0.0...1.21.7-1.0.0
19.1k
Release
fabric-1.21.7-1.0.0
fabric, quilt · 1.21, 1.21.1, 1.21.2 · 11mo ago
**Full Changelog**: https://github.com/matthewperiut/cryonicconfig/compare/1.21.6-1.0.0...1.21.7-1.0.0
29.5k

Комментарии 0

Пока нет комментариев. Будь первым, кто поделится мнением.

Скачать Cryonic Config

R neoforge-26.1.2-1.0.0 26.1, 26.1.1, 26.1.2 neoforge 129 KB R fabric-26.1.2-1.0.0 26.1, 26.1.1, 26.1.2 fabric, quilt 20 KB R neoforge-1.21.11-1.0.0 1.21, 1.21.1, 1.21.2 neoforge 131 KB R fabric-1.21.11-1.0.0 1.21, 1.21.1, 1.21.2 fabric, quilt 21 KB R neoforge-1.21.10-1.0.0 1.21, 1.21.1, 1.21.2 neoforge 131 KB R fabric-1.21.10-1.0.0 1.21, 1.21.1, 1.21.2 fabric, quilt 22 KB R neoforge-1.21.9-1.0.0 1.21, 1.21.1, 1.21.2 neoforge 131 KB R fabric-1.21.9-1.0.0 1.21, 1.21.1, 1.21.2 fabric, quilt 22 KB R neoforge-1.21.8-1.0.0 1.21, 1.21.1, 1.21.2 neoforge 131 KB R fabric-1.21.8-1.0.0 1.21, 1.21.1, 1.21.2 fabric, quilt 22 KB R neoforge-1.21.7-1.0.0 1.21, 1.21.1, 1.21.2 neoforge 131 KB R fabric-1.21.7-1.0.0 1.21, 1.21.1, 1.21.2 fabric, quilt 22 KB R neoforge-1.21.6-1.0.0 1.21, 1.21.1, 1.21.2 neoforge 131 KB R fabric-1.21.6-1.0.0 1.21, 1.21.1, 1.21.2 fabric, quilt 22 KB R forge-1.20.1-1.0.0 1.20, 1.20.1 forge 131 KB R fabric-1.20.1-1.0.0 1.20, 1.20.1 fabric, quilt 21 KB R forge-1.18.x-1.0.0 1.18, 1.18.1, 1.18.2 forge 14 KB R fabric-1.18.x-1.0.0 1.18, 1.18.1, 1.18.2 fabric, quilt 21 KB R forge-1.19.x-1.0.0 1.19, 1.19.1, 1.19.2 forge 131 KB R fabric-1.19.x-1.0.0 1.19, 1.19.1, 1.19.2 fabric, quilt 21 KB R forge-1.20.4-1.0.0 1.20.2, 1.20.3, 1.20.4 forge 131 KB R neoforge-1.20.4-1.0.0 1.20.2, 1.20.3, 1.20.4 neoforge 132 KB R fabric-1.20.4-1.0.0 1.20.2, 1.20.3, 1.20.4 fabric, quilt 22 KB R neoforge-1.20.6-1.0.0 1.20.5, 1.20.6 neoforge 131 KB R fabric-1.20.6-1.0.0 1.20.5, 1.20.6 fabric, quilt 22 KB R neoforge-1.21.4-1.0.0 1.21, 1.21.1, 1.21.2 neoforge 131 KB R fabric-1.21.4-1.0.0 1.21, 1.21.1, 1.21.2 fabric, quilt 22 KB R babric-b1.7.3-1.0.0 b1.7.3 babric, fabric 20 KB

Файлы отдаются напрямую с первоисточника. Modgrid не хранит и не изменяет их.