Amalgamation Wiki
Fabric + NeoForge
Library · Fabric & NeoForge

Adding to your Mod

  1. Add Modrinth Maven to your repositories
repositories {
    exclusiveContent {
        forRepository {
            maven {
                name = "Modrinth"
                url = "https://api.modrinth.com/maven"
            }
        }
        filter {
            includeGroup "maven.modrinth"
        }
    }
}
  1. Add Amalgamation as a dependency using its latest version under dependencies (please go to Modrinth if you're after an older version)
dependencies {
    implementation "maven.modrinth:amalgamation-library:coming_soon"
}

Note: There is both a Fabric and a NeoForge version available. So replace '+fabric' or '+neoforge' with the appropriate suffix of your target modloader.

  1. Applying your MOD_ID to the Registry Classes

In order to use Amalgamation, you will need to apply your MOD_ID to all the registry classes. This is done by calling the following method in your main mod class:

ModRegistry.MOD_ID = "your_mod_id";

Note: This should be done in the constructor of your main mod class.