Adding to your Mod
- Add Modrinth Maven to your repositories
repositories {
exclusiveContent {
forRepository {
maven {
name = "Modrinth"
url = "https://api.modrinth.com/maven"
}
}
filter {
includeGroup "maven.modrinth"
}
}
}
- 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.
- 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.