跳到正文

ConfigLib TXF

作者:jahirtrap

A powerful & lightweight config library for Minecraft mods

收藏

截图

介绍

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

ConfigLib TXF mod

CurseForge downloads Modrinth downloads Maven Central Ask DeepWiki

A powerful & lightweight config library for Minecraft mods

Main features:
Automatic Config Screen: A ready-to-use GUI with tabs, categories, and a reset button on every field
JSON5 Config Files: Human-friendly config files with auto-generated comments showing defaults, ranges, and allowed values
Rich Widgets: Toggles, sliders, cycle buttons, color picker, file/directory chooser, and item/block icon preview
Real-Time Editing: Changes apply instantly while editing, with per-field validation (min/max, regex) and visual feedback
Server Sync: Seamlessly syncs selected fields from server to clients in multiplayer, keeping gameplay consistent
Multiple Configs: Split a mod’s settings across several files with an automatic hub screen for navigation
Full Translation Support: Every label, tooltip, tab, and enum value can be translated through the standard language files
Fabric/Quilt dependencies:

Dependency (Maven Central)

repositories {
    mavenCentral()
}

dependencies {
    // Fabric
    implementation 'io.github.jahirxtrap:configlibtxf:TAG-fabric'
    // Forge
    implementation 'io.github.jahirxtrap:configlibtxf:TAG-forge'
    // NeoForge
    implementation 'io.github.jahirxtrap:configlibtxf:TAG-neoforge'
}

Replace TAG with the version you want (e.g. 26.1.2-2.0.0).

Usage

// initialize config
TXFConfig.init(MODID, ModConfig.class);

常见问题

ConfigLib TXF 支持哪些 Minecraft 版本?

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

ConfigLib TXF 怎么安装?

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

评论

登录后评论和评分

jahirtrap 的其他作品

查看全部 →