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.

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")}")
note

Unimined uses the same configurations as Fabric Loom, so this snippet works there as well.

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")}")