介绍
中文介绍正在准备中,下面暂时显示原文。
Better Config
BetterConfig extends Forge’s annotation-based config system to support nested arrays, collections, arrays/collections/maps of objects, and much more.
Usage
BetterConfig is hosted on Maven Central. To get started, add the following to your dependencies in your build script:
implementation fg.deobf('io.github.meldexun:betterconfig:1.12.2-1.3.0')
To then migrate from Forge to BetterConfig, you only have to
- annotate your config class with
@BetterConfiginstead of@Configand - replace all invocations of
ConfigManager.sync(String, Type)withBetterConfigManager.sync(String).
That’s it! Now your config will be processed by BetterConfig.
Features
For more information, check out the wiki at https://github.com/Meldexun/BetterConfig/blob/main/README.md
Mod Features
Features for players installing the mod
- In-game GUI editing of mods using
net.minecraftforge.common.config.Configuration. These configs would normally not be editable in-game because they don’t use Forge’s annotation-based config system. Depending on how these mods use their config, you might have to restart your game to see an effect.
常见问题
Better Config 支持哪些 Minecraft 版本?
Better Config 支持 Minecraft Java 版 1.12.2,可用的加载器:Forge。下载时注意选择和你游戏版本一致的文件。
Better Config 怎么安装?
先用 PCL2 或 HMCL 启动器安装对应版本的 Forge,再把下载的 .jar 文件放进游戏目录的 mods 文件夹,重新启动游戏即可。开启了版本隔离的,mods 文件夹在 versions/版本名 下面。运行环境:客户端和服务端都要装。
评论
登录后评论和评分