Skip to content

DM-Earth/Conveniented-Forge-Tags

Repository files navigation

Conveniented Forge Tags

This is a simple Minecraft mod for Fabric/Quilt 1.18.2 that makes ForgeTags and Conventional Tags sync with each other.

Why?

If you're playing Create Fabric (or other mods that use ForgeTags) with other 'big' native Fabric mods, you may find that they are using two different tags systems and they are not compatible with each other so you can't use a mod's item in another mod's recipe. This mod is designed to solve this problem.

Builtin Merge Rules

Ingots
Double Ingots
Plates
Dusts
Small Dusts
Tiny Dusts
Nuggets
Rods
Wires
Coins
Gears
Dyes
Seeds
Ores
Storage Blocks
Raw Ores

Example

For example, zinc ingots. In ForgeTags it's #c:ingots/zinc and in conventional tags it's #c:zinc_ingots.

Before

// #c:zinc_ingots
{
    "techreborn:zinc_ingot",
    "another_tech_mod:zinc_ingot"
}
// #c:ingots/zinc
{
    "create:zinc_ingot",
    "alphamode:zinc_ingot"
}

After

// #c:zinc_ingots
{
    "techreborn:zinc_ingot",
    "another_tech_mod:zinc_ingot",
    "create:zinc_ingot",
    "alphamode:zinc_ingot"
}
// #c:ingots/zinc
{
    "techreborn:zinc_ingot",
    "another_tech_mod:zinc_ingot",
    "create:zinc_ingot",
    "alphamode:zinc_ingot"
}

Api Usage

Register a TagMergeRule

You can use static method register in the TagMergeRule class to register your custom TagMergeRule.

TagMergeRule.register(new TagMergeRule.Simple("double_ingots"));