Player Animator is a plugin that allows you to animate the player model using smooth keyframe (json) animations created with blockbench, blender or even by hand. This is done though the help of the playerAnimator library.
Example of a player animation:
How to use:
First, you will need to use blockbench, animate a template player model and extract the .json animation. The animation in the first example is made with blender, but you can use the geckolib plugin in blockbench like I did to make the second example.
Now that you have the animation file, it will need to be placed here:
Once you have placed your animation in the correct folder, you need to make an empty procedure and select the event shown below. The procedure does not need any further inspection.
Now, you are ready to use your animations! All you will need to do is include the procedure block provided by the plugin (and have the playerAnimator library enabled in workspace settings).
Potential issues when using the plugin:
"I can't get the animation parts to work correctly!" -You can find the official bbmodel here
"The game keeps crashing when I try use the animation!" -You either didn't place the file in the right place, or you renamed the animation after exporting it. Don't do that.
"I'm getting a build error!" -You didn't name the SetupAnimations procedure correctly, or your use of the procedure block was simply not accounted for.
"The animation won't play!" -None of the entities in your event are players, therefore it has nothing to play for.
Comments
idk why but the game always crashes when joining a world, i followed every step to make my animation (made in blockbench with geckolib plugin) to work by typing /playanimation
here's the things i tried:
i did name the SetupAnimations procedure correctly
i did place the animation.json in the right place and i didn't renamme the animation after exporting it
what should i do?
I have two questions:
1. Which one is that template player model in blockbench? Minecraft Skin or Player model from CEM Template Loader
2. Is it possible to animate only one part? Like I want to rotate right arm (so it looks like player is holding gun )if holding specific item
Hello, I created a mod where when I press a key my character plays an animation, the problem is that the animation only happens for me, for the other players I stay normal, both sides have mod and player animator enabled, does anything need to be done to enable animations on the server?
It only works on client side, see https://github.com/KosmX/minecraftPlayerAnimator
If you really want it to play animations on server side, try using Entity attacked (only projectile) global trigger to trigger the animation. I test it and it works for 1.19.2 on LAN world.
Example:
Custom a keybind which make yourself hurt by a custom invisible arrow, and then use Entity attacked global trigger to trigger your animation. Finally, cancel the event that triggered the global trigger.
By the way, if you want to use additional conditions, don't use mcreator's variables, use item in hand, armor on head or item NBT tags instead.
1.20.1 plz