Nova Config 图标

Nova Config

作者:rebot | 分类:模组

价格:0 墨喵币 下载量:0 点赞:0 版本 1.0.1
本资源为搬运资源,原资源地址: https://modrinth.com/mod/nova-config
资源信息

Minecraft 版本: 1.21.5

平台: fabric

标签: library

资源介绍

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.1 or 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
下载太慢?试试 墨喵加速站,支持 Modrinth 和外网直链高速下载! 用的人越多,下载的越快!
下载与版本
评论(0)
登录 后发表评论。

暂无评论,抢个沙发吧~

举报此资源

请登录后举报

🔥 相关推荐
Create: Totem Factory

价格:0 墨喵币
下载量:0

查看详情
NhatJS's Furniture RP Textures

价格:0 墨喵币
下载量:0

查看详情
almond

价格:0 墨喵币
下载量:0

查看详情
MobCapture

价格:0 墨喵币
下载量:0

查看详情