Easy Data Fix

A library that enables modders to register custom data fixers.

Редакция NLZONE · 2 мин чтения · 0 просмотров
Easy Data Fix
Скачать Easy Data Fix1.21 – 26.3 · с официальной страницы: modrinth.com
Перейти к загрузке

Что это

A library that enables modders to register custom data fixers.

  • Тип: мод
  • Загрузчик: fabric, neoforge
  • Версии Minecraft: 1.21 – 26.3
  • Скачиваний на Modrinth: 956

Подробно

A library that enables modders to register custom data fixers.

Download on CurseForge | Download on Modrinth | Download from Releases

Easy Data Fix is a small library mod that aids in creation of data fixers for mods, allowing custom mod game data to be converted between different versions of the game safly. The mod wraps the builtin DataFixerUpper classes which are as Mojang says "a set of utilities designed for incremental building, merging, and optimization of data transformations"

1. Download easydatafix- -x.x.x+mc26.1 from on of the places at the top of this README. 2. Copy the downloaded jar file to your mods folder.

To setup data fixers for your mod you first need to add the library as a dependency in your build.gradle file, then you just need to register them on pre-launch using Easy Data Fix's API. See example below.

build.gradle groovy repositories { mavenCentral() maven { name = "Modrinth" url = "https://api.modrinth.com/maven" } }

// Replace with the version number string from the Modrinth version page implementation "com.modrinth:easy-data-fix: " }

ExampleFix.java java public class ExampleFix implements PreLaunchEntrypoint { @Override public void onPreLaunch() { DataFixerRegistry.addDataFix("Description of data fixer", builder -> { // dataVersion = The Minecraft data version used in the version your upgrading to. // SchemaVersion = The builtin schema class that goes with the data version. // Example: (4773, V4771::new) = 26.1 full release Schema schema = builder.addSchema(dataVersion, V[SchemaVersion]::new); builder.addFixer(BlockRenameFix.create(schema, "Fixer Name", DataFixerAPI.createRenamer("examplemod:modblock", "examplemod:newmodblock"))); builder.addFixer(ItemRenameFix.create(schema, "Fixer Name", DataFixerAPI.createRenamer("examplemod:moditem", "examplemod:newmoditem"))); }); // You may also have multiple DataFixerRegistry here to better organize your data fixes or to support other versions. } }

To get a local copy up and running, follow these simple steps.

Ensure you have the following installed on your machine:

Java Development Kit (JDK): Version 25 or higher. Download JDK Gradle: Version 9.2 or higher. Install Gradle Minecraft: Version 26.1

1. Clone the repository sh git clone https://codeberg.org/VoxelBil

Как установить

Скачайте файл на официальной странице ниже и положите его в папку mods (для модов) или plugins (для плагинов) вашего сервера или клиента. Для модов нужен совместимый загрузчик. Версия должна совпадать с версией Minecraft.

Текст подготовлен автоматически из описания на Modrinth и ждёт проверки редакцией.

Редакция NLZONE

Пишем о серверах, модах и играх, в которые играем сами. Нашли ошибку — напишите нам, исправим.

Комментарии 0

Комментарии к этому материалу отключены.

Читайте также