Unofficial community port of PlayerAnimator library for Minecraft 1.21.10 - Animate players while maintaining mod compatibility
This is an unofficial community port for Minecraft 1.21.10
The original author is no longer maintaining PlayerAnimator and recommends using PAL instead.
PlayerAnimator is a Minecraft library to animate the player while trying to break as few mods as possible.
This port adapts the library to work with Minecraft 1.21.10 (Fabric).
Just install this mod as a library - it does nothing on its own. Other mods that use PlayerAnimator will enable their animations when this is installed.
The API is fully compatible with original PlayerAnimator:
// Get player's animation stack
AnimationStack stack = PlayerAnimationAccess.getPlayerAnimLayer(player);
// Add animation layer
stack.addAnimLayer(new ModifierLayer<>(animation));
// Load animation from JSON
AnimationContainer animation = PlayerAnimationRegistry.getAnimation(
new Identifier("modid", "animation_name")
);
repositories {
maven { url 'https://jitpack.io' }
}
dependencies {
modImplementation "com.github.TOSTcRa:playerAnimator-1.21.10:v2.0.1-1.21.10-unofficial"
include "com.github.TOSTcRa:playerAnimator-1.21.10:v2.0.1-1.21.10-unofficial"
}
Animations use these body parts:
head / body (whole player) / torso (chest)rightArm / leftArm / rightLeg / leftLegPlace animations in: assets/modid/player_animation/