截图
介绍
中文介绍正在准备中,下面暂时显示原文。
NovaConfig
A high-level configuration system for mod developers—focused on expressiveness, modularity, and zero boilerplate.
✨ Features
- ✅ DSL-Based Config Rich Kotlin builder syntax with intuitive declarations
- 🎛️ Modular UI Components Toggles, sliders, dropdowns, keybinds, color pickers—fully composable
- ♻️ Live Reloading Config changes apply instantly in-game
- 📘 Inline Markdown Docs Embed documentation and onboarding info right into config UIs
🧩 Getting Started
Add this to your build.gradle.kts:
repositories {
maven { url = uri("https://repo.essential.gg/public") }
mavenCentral()
maven { url = uri("https://jitpack.io") }
}
dependencies {
modImplementation("com.github.Eclipse-5214:nova-config:1.0.1")
}
And in fabric.mod.json:
"depends": {
"nova-config": "*"
}
JitPack supports version tags and commit hashes—use
1.0.1or later for the stable DSL.
🛠 Example
val config = NovaApi.createConfig("example", "yourmodid") {
category("General") {
toggle {
configName = "enabled"
name = "Enable Feature"
description = "Toggle a feature on or off"
default = true
}
colorpicker {
configName = "themeColor"
name = "Theme Color"
description = "Pick your favorite hue"
default = rgba(255, 255, 255, 255)
}
}
}
To access:
val config = NovaApi["example"]
val isEnabled = config as Boolean ?: false
val themeColor = (config as RGBA).getColor("themeColor")
🙌 Credits
- [Eclipse (NEXD_)] – Creator & lead dev
- Elementa UI
- Amaterasu
- Catppuccin – Palette
- Stella – The mod NovaConfig was born for
- All contributors, testers, and those giving feedback
- And DrPepper of course
常见问题
Nova Config 支持哪些 Minecraft 版本?
Nova Config 支持 Minecraft Java 版 1.21.5,可用的加载器:Fabric。下载时注意选择和你游戏版本一致的文件。
Nova Config 怎么安装?
先用 PCL2 或 HMCL 启动器安装对应版本的 Fabric,再把下载的 .jar 文件放进游戏目录的 mods 文件夹,重新启动游戏即可。开启了版本隔离的,mods 文件夹在 versions/版本名 下面。运行环境:仅客户端。
评论
登录后评论和评分