Player Animator API Plugin — this is a modified plugin that allows you to animate the player model using smooth keyframe (JSON) animations created in Blockbench, Blender, or even written by hand. This is done with the help of the playerAnimator library.
How to Use:
First, open Blockbench, load the player model template, and create your animation. Then export it as a .json file.
Note: You can use the official GeckoLib plugin for Blockbench (as was done in the second example), or write the animation manually.
Once your animation file is ready, place it into the following directory:
[your_project_folder]/assets/player_animations/
Now, create an empty procedure and select the event shown below. No additional actions are required inside this procedure.
Procedure Name: SetupAnimations
You're now ready to play your animations! All you need to do is use the special **"Play Animation"** block provided by this plugin fork, and make sure the **playerAnimator** library is enabled in your workspace settings.
Potential Issues:
"The animation parts aren't working correctly!"
→ You're likely using the wrong base model. The official bbmodel can be found [here].
"The game keeps crashing when I try to play the animation!"
→ Either the file wasn’t placed in the correct location, or you renamed it after exporting. Don’t do that!
"I'm getting a build error!"
→ You may have misnamed the SetupAnimations procedure, or your use of the animation block wasn't handled properly.
"The animation won't play!
→ There are no player entities in your current event, so there's nothing for the animation to play on.
This plugin is a fork of the original Player Animator by NerdyPuzzle, featuring additional fixes and improvements for better compatibility and flexibility.