跳到正文

CoreConfig

作者:Pryzmm

An easy-to-use configuration mod for developers and users

收藏

截图

介绍

中文介绍正在准备中,下面暂时显示原文。

CoreConfig Logo

CoreConfig is a modern and easy-to-use configuration mod that allows developers to easily implement settings that users can change at will. CoreConfig is highly customizable and can even have decorated banners, button colors and more, specific to the viewed mod, making it a viable option for new mods.

image

Features

CoreConfig comes with a bunch of features for developers:

  • Configuration support for Strings/Integers/Floats/Doubles/Colors/Booleans/Much More
  • Website buttons to open a site in a user’s browser
  • Custom buttons that can run any Runnable
  • Mod-specific customization (image banner, button colors, and more!)
  • Configuration validation
  • Sorting and option dividers
  • …and more!

It also has some perks for players using the CoreConfig mod:

  • Modify all supported mods in one menu
  • Extremely simplistic for ease of use with a user-friendly interface

Implementation

To use this in your own mod, you can add Jitpack as a repository, then implement my API directly into the mod. This makes having the configuration mod optional and players will not have to download CoreConfig alongside your mod. Below is how to implement it with gradle or maven.

If players do not have the CoreConfig mod installed, supplied default values will ALWAYS be used.

The API is a normal java library, NOT a minecraft mod library. Implementation may vary depending on your loader and versions. Subject to change in the future.

repositories {
    mavenCentral()
}

dependencies {
    implementation "io.github.pryzmm:coreconfigapi:1.0.3"
}

<dependency>
    <groupId>io.github.pryzmm</groupId>
    <artifactId>coreconfigapi</artifactId>
    <version>1.0.3</version>
</dependency>

Support

You can support the development of this mod and future releases by becoming a sponsor on GitHub or supporting my Ko-Fi!

github-sponsor
kofi-sponsor

常见问题

CoreConfig 支持哪些 Minecraft 版本?

CoreConfig 支持 Minecraft Java 版 1.20–26.1.2,共 21 个版本,可用的加载器:Fabric / Forge / NeoForge。下载时注意选择和你游戏版本一致的文件。

CoreConfig 怎么安装?

先用 PCL2 或 HMCL 启动器安装对应版本的 Fabric / Forge / NeoForge,再把下载的 .jar 文件放进游戏目录的 mods 文件夹,重新启动游戏即可。开启了版本隔离的,mods 文件夹在 versions/版本名 下面。运行环境:客户端 / 服务端。

评论

登录后评论和评分

Pryzmm 的其他作品

查看全部 →