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
I'm not sure to understand all steps. I tried to use the pluggin but i'm having an error with the SetupAnimation procedure. This is what the console is showing me:
Task :compileJava FAILED
error: cannot find symbol
symbol: class IAnimation
location: class SetupAnimationsProcedure
error: package PlayerAnimationFactory does not exist
error: cannot find symbol
symbol: class ModifierLayer
location: class SetupAnimationsProcedure
PS: This is for a school project that i need to finish quickly, so pls help me fast.
Excuse me for commenting on an old post, but I'm unsure how to move the item in the players hand when animating in Blockbench and the animation i want to create needs this functionality to work properly. If anyone knows what to call the folder for the item in Blockbench please reply.
Hey Nerdy! Huge thanks for all the work you've done on all these plugins! But can i be a little selfish and ask one more thing of you? can you please make a fabric version of this plugin? Its the last piece of the puzzle to make a awesome content! Thank you so much!