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
alright so the walking animation works perfectly, but all the other animations have been negated and i think its because the ignore active animations empty animation that i use for stopping the walking animation interuppts all animations except for the walking animation
Yeah sorry I forget to tell you.
You need to put the variable to false once you stop running, like that:
if get global sprinting = true
do (block to play the animation here)
else do set global sprinting to false and below this you put the empty animation block
(block to play that empty animation here SET TO IGNORE ANOTHER PLAYING ANIMATION TO TRUE)
Help!
I'm going to make a pistol, and I downloaded your official Blockbench model.
and I made HoldingGunPlayer.animation.json file so I tried to apply it.
I used Minecraft 1.19.4 (Forge 45.1.0) and made a procedure.
I choosed [Setup Player Animation (Player Animator)] and I put [If {Event/target entity} is a player, play animation "HoldingGunPlayer.animation" and ignore active animations {True}].
Then MCreator says "You have selected external trigger that does not provide the following on the dependencies: world"
What should I do? when I put the code, Required dependencies appears to "entity and world". Please help me!
P.S. I used your GeckoLib plugin well. Thanks.
The same*