forked from FabricMC/fabric-example-mod
-
Notifications
You must be signed in to change notification settings - Fork 26
Adding mod dependencies
Grayray edited this page Aug 12, 2023
·
1 revision
In order to implement the api of a mod, for example to add your mod settings to Mod Menu, it is required that you add that mod to your build script as a dependency with modImplementation
. To simplify this setup Modrinth allows you to load mods directly from there maven.
More info about this can be found in the Modrinth docs.
For more info about loom dependencies see the fabric wiki.
// build.gradle
repositories {
exclusiveContent {
forRepository {
maven {
name = "Modrinth"
url = "https://api.modrinth.com/maven"
}
}
filter {
includeGroup "maven.modrinth"
}
}
}
dependencies {
modImplementation "maven.modrinth:legacy-mod-menu:1.1.0"
}