XDPXI's Documentation

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

build.gradle

repositories {
  maven { url = "https://maven.xdpxi.net/releases" }
}

dependencies {
  implementation "dev.xdpxi:${project.xdlib_artifact}:${project.xdlib_version}"
}

gradle.properties

xdlib_artifact=xdlib-fabric-1.21.11
xdlib_version=7.0.5

A list of available artifacts and versions can be found here.

Only artifacts with the prefix xdlib are XD's Library artifacts, any others are for other projects.

Added to the requirements

You will want to add the mod as a dependency

fabric.mod.json

"depends": {
  "xdlib": ">=7.0.5-fabric-1.21.11"
}

neoforge.mods.toml

[[dependencies.YOURMOD]]
modId = "xdlib"
type = "required"
versionRange = "[7.0.5-neoforge-1.21.11,)"
ordering = "NONE"
side = "BOTH"

mods.toml

[[dependencies.YOURMOD]]
modId = "xdlib"
type = "required"
versionRange = "[7.0.5-forge-1.21.11,)"
ordering = "NONE"
side = "BOTH"

plugin.yml

depend:
  - xdlib