跳到正文

Monument Data Fix

作者:QWERTY770

API support for custom data fixers!

收藏

介绍

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

Monument Data Fix

A library that enables modders to register customized data fixers.

What is Data Fixer?

As Mojang said in the readme file, DataFixerUpper is “a set of utilities designed for incremental building, merging, and optimization of data transformations”. It is created for converting the game data between different versions of the game.

What does Monument Data Fix do?

Monument Data Fix provides a set of APIs for modders to create customized data fixers. The mod by default provides data fixers for Sweet Potato Reborn and Xdi8Aho Mod, which allows you to upgrade a save in Minecraft 1.16-1.19 with Sweet Potato Mod to Minecraft 1.21+ with Sweet Potato Reborn, or upgrade a save in Minecraft 1.18.2 with Xdi8Aho Mod to Minecraft 1.21.4+ with Xdi8Aho Mod and Sweet Potato Reborn.

Note: In Minecraft 1.18.2, Xdi8Aho Mod was a combination of Sweet Potato Mod and the own content of Xdi8Aho Mod. However, Xdi8Aho Mod has already been separated into the two mods, and now Xdi8Aho Mod only contains the content of its own. Therefore, you need to install Xdi8Aho Mod and Sweet Potato Reborn at the same time in Minecraft 1.21.4+. Otherwise, the game would delete the old blocks which it could not recognize.

Do I need this mod?

For general players: If you don’t need to upgrade a modded save, you don’t need Monument Data Fix. If you have a modded save to upgrade, and the mod developer states that Monument Data Fix is needed as a dependency, you should install this mod.

For mod developers: If you would like to enable your mod saves to be upgraded, make a data fixer mod using Monument Data Fix as a dependency and point out “Monument Data Fix is needed when upgrading saves” in the mod description.

Currently, there isn’t a program document for the mod. In order to add your custom data fixers, call top.qwerty770.monument.datafix.api.DataFixerRegistry$addDataFix(String name, CustomDataFixer dataFixer) or top.qwerty770.monument.datafix.api.DataFixerRegistry$addDataFix(String name, Function<DataFixerBuilder, DataFix> dataFixer) before net.minecraft.util.datafix.DataFixers$addFixers is called. If you have questions on the registry, refer to Monument Data Fix itself as an example, because it provides data fixers for two mods by default. You may submit issues on Github.

External Links

常见问题

Monument Data Fix 支持哪些 Minecraft 版本?

Monument Data Fix 支持 Minecraft Java 版 1.21–1.21.5,共 6 个版本,可用的加载器:Fabric / NeoForge。下载时注意选择和你游戏版本一致的文件。

Monument Data Fix 怎么安装?

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

评论

登录后评论和评分

QWERTY770 的其他作品

查看全部 →