Adding to a project
This documentation is for the latest version, for older versions (v3, v4, v5, v6) see the old documentation.
Setting up the Gradle
In your build.gradle file you want to add the Modrith Maven to the repositories and then you want to add the xdlib
to the dependencies
repositories {
maven { url "https://api.modrinth.com/maven" }
}
dependencies {
modImplementation("maven.modrinth:xdlib:${project.xdlib_version}")
}xdlib_version=VERSIONAdded to the requirements
Inside your fabric.mod.json you want to add the mod as a dependency in depends
"depends": {
"xdlib": ">=VERSION"
}