跳到正文

Serpentine

作者:pero_sk

Serpentine is a light weight config library mod based on providing fast configuration to any mod needing it

收藏

截图

介绍

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

Multiplayer only works on 2.0.0+

github

Serpentine

Serpentine is a lightweight configuration library mod that can easily be used in other projects.

Serpentine provides an easy way to setup configuration for any mod, all you need is a class that extends the Config class provided by Serpentine and to then register it in your modInitializer.

Potential Bloat

what bloat?

The config screen is probably the only bloat in this mod but even then its just three classes that automate making a config screen for you.

what does the config screen do?

The config screen parses your config’s expects and detects their default value’s type. If it is an integer it makes a SliderWidget that goes from 0-100 (I’ll add more customisation for this in later versions), if it is a boolean it’ll make two buttons for True and False, the currently selected one (not saved one) will have a checkmark next to it. If it is a float or string then a textField will be made where the user can type in their desired value.

How to setup serpentine?

Check this out for how to install serpentine as a dependency.

Then to setup a config, check out this example

常见问题

Serpentine 支持哪些 Minecraft 版本?

Serpentine 支持 Minecraft Java 版 1.21–1.21.11,共 12 个版本,可用的加载器:Fabric。下载时注意选择和你游戏版本一致的文件。

Serpentine 怎么安装?

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

评论

登录后评论和评分

pero_sk 的其他作品

查看全部 →