Setup

Fabric

gradle.properties

Add the mod versions to gradle.properties

xdlib_version=4.0.0-beta.2+fabric

build.gradle

Add the maven to your repositories

maven { url = "https://api.modrinth.com/maven" }

Once you have added that you will add the mod implementations to the dependencies

modImplementation("maven.modrinth:xdlib:${project.xdlib_version}")

fabric.mod.json

Add the mod to your depends

"depends": {
    "xdlib": ">=4.0.0-beta.2"
}

Forge

gradle.properties

Add the mod version to gradle.properties

xdlib_version=4.0.0-beta.2+forge

build.gradle

Add the mod as a dependency from below

maven { url = "https://api.modrinth.com/maven" }

Once you have added that you will add the mod implementation to the dependencies

modImplementation("maven.modrinth:xdlib:${project.xdlib_version}")

NeoForge

gradle.properties

Add the mod version to gradle.properties

xdlib_version=4.0.0-beta.2+neoforge

build.gradle

Add the mod as a dependency from below

maven { url = "https://api.modrinth.com/maven" }

Once you have added that you will add the mod implementation to the dependencies

modImplementation("maven.modrinth:xdlib:${project.xdlib_version}")

Last updated