James’s Config Lib
A lightweight, extendable, simple config library for forge and fabric
介绍
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.
常见问题
James’s Config Lib 支持哪些 Minecraft 版本?
James’s Config Lib 支持 Minecraft Java 版 1.17.1–1.20.4,共 14 个版本,可用的加载器:Fabric / Forge / NeoForge / Quilt。下载时注意选择和你游戏版本一致的文件。
James’s Config Lib 怎么安装?
先用 PCL2 或 HMCL 启动器安装对应版本的 Fabric / Forge / NeoForge / Quilt,再把下载的 .jar 文件放进游戏目录的 mods 文件夹,重新启动游戏即可。开启了版本隔离的,mods 文件夹在 versions/版本名 下面。运行环境:客户端 / 服务端。
itsmenotjames 的其他作品
查看全部 →
Soulbound
A mod all about souls and using them for magic and tech!
Thommas
Thommas is a fabric mod adding several new features including: ores, villagers, crops, modification of vanilla loot tables and. This mod depends on "Fabric API" as of the world gen update
Hammerspace
Hammerspace is a mod where players can make controllers and carry dimensions in their pocket!
Better Spawner
Add configurable spawners to the game!
评论
登录后评论和评分