Skip to content
This repository has been archived by the owner on Jul 20, 2021. It is now read-only.

omega-mc/budget-dfu

Repository files navigation

Budget DFU

Budget DFU is a simple library that allows you remap items from old saves to updated IDs.

Example:

you have an item with the ID of tcraft:epic_sword, but you want to update the registry ID to tcraft:super_sword.

Bundling

repositories {
    maven { url 'https://jitpack.io' }
}
dependencies {
    modImplementation 'com.github.Draylar:budget-dfu:master-SNAPSHOT'
    include 'com.github.Draylar:budget-dfu:master-SNAPSHOT'
}

Usage

// Register a remapper that converts Items with the ID of mod:apple to mod:banana.
BudgetDFU.registerDirectRemap(Registry.ITEM, new Identifier("mod", "apple"), new Identifier("mod", "banana"));

// Register a remapper that converts any namespace.
BudgetDFU.registerNamespaceRemap(Registry.ITEM, "supercraft", "coolcraft")