Skip to main content

How to add the library to your mod's project

Versions

Pick the PAL version that matches the Minecraft version you are targeting (the latest versions are fetched automatically):

Minecraft VersionPAL VersionStatus
26.21.2.6+mc.26.2Supported
26.1.X1.2.6+mc.26.1Supported
1.21.111.1.10+mc.1.21.11Supported
1.21.9-101.1.3+mc.1.21.9Unsupported
1.21.81.1.2+mc.1.21.8Unsupported
1.21.71.0.12+mc1.21.7Unsupported
1.21.11.1.6+mc.1.21.1Supported

Gradle properties

gradle.properties:

pal_version = <latest version from the table above>

Maven repository

build.gradle / build.gradle.kts:

repositories {
mavenCentral()
maven {
name = "RedlanceMinecraft"
url = uri("https://repo.redlance.org/public")
}
}

Dependencies

Add the dependency for the loader you are using.

warning

We are absolutely against jar in jaring/including this mod in your mod.
Jar in jaring has zero benefits, it stops us from getting downloads, and it stops users from getting important library updates.
If you are worried that your mod has too many dependencies, don't be.
Most mod loaders automatically download dependencies, and even manually downloading libraries is not a big hassle. With all this in mind please don't JIJ our mod, or anyone else's mod.

note

The snippets below are written so they work in both the Groovy and the Kotlin DSL. In the Kotlin DSL you can also pull the property out once and interpolate it directly:

val pal_version: String by project

dependencies {
implementation("com.zigythebird.playeranim:PlayerAnimationLibFabric:$pal_version")
}
info

Minecraft is no longer obfuscated starting from 26.1, so there is nothing left to remap and Loom dropped its remapping configurations. On 26.1 and newer use the plain Gradle configurations, on older versions keep using the mod ones:

26.1+1.21.11 and older
implementationmodImplementation
apimodApi

Fabric

// 26.1+
implementation("com.zigythebird.playeranim:PlayerAnimationLibFabric:${property("pal_version")}")

// 1.21.11 and older
modImplementation("com.zigythebird.playeranim:PlayerAnimationLibFabric:${property("pal_version")}")

NeoForge

implementation("com.zigythebird.playeranim:PlayerAnimationLibNeo:${property("pal_version")}")

Architectury — common

// 26.1+
api("com.zigythebird.playeranim:PlayerAnimationLibCommon:${property("pal_version")}")
implementation("com.zigythebird.playeranim:PlayerAnimationLibCommon:${property("pal_version")}")

// 1.21.11 and older
modApi("com.zigythebird.playeranim:PlayerAnimationLibCommon:${property("pal_version")}")
implementation("com.zigythebird.playeranim:PlayerAnimationLibCommon:${property("pal_version")}")

Architectury — NeoForge

// 26.1+
implementation("com.zigythebird.playeranim:PlayerAnimationLibNeo:${property("pal_version")}")

// 1.21.11 and older
modImplementation("com.zigythebird.playeranim:PlayerAnimationLibNeo:${property("pal_version")}")