跳到正文

MezzConfig

作者:mezz

Simple configuration library for Minecraft Mods

收藏

介绍

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

MezzConfig is a lightweight configuration library for Minecraft mods on Fabric, Forge, and NeoForge. It gives mod developers one API for managing client preferences, settings for individual worlds and servers, and server-controlled options synchronized to connected players.

Features include:

  • Different config types: shared client preferences, per-world or per-server client settings, and server-owned configuration.
  • Modpack defaults: pack authors can provide defaults while allowing players and worlds to override individual settings.
  • Validated configuration: built-in support for numbers, text, colors, enums, lists, and custom value types.
  • Responsive updates: change listeners and restart requirements let mods apply settings at the right time.
  • Automatically detect file updates: changes to config files are applied in-game.
  • Migration and recovery: tools to preserve existing settings when mods change their config names, locations, or formats.

Mod developers can find setup instructions and API examples on Github.

评论

登录后评论和评分

mezz 的其他作品

查看全部 →