Player Animator [Forge 1.18.2, 1.19.2, 1.19.4, 1.20.1, 1.20.4]

Supported MCreator versions
2022.2
2022.3
2023.1
2023.2
2023.3
2023.4
2024.1
Tags / plugin type
API support
Global triggers
Procedures
player animator
Downloads:
9880
Upvotes: 144
About the plugin

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:

 

animation example

flip 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:

file location

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.

name

procedure

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).

procedure block

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.

License
MIT License

Plugin downloads
Player Animator v1.8.1 - playerAnimator_0.zipUploaded on: 04/13/2024 - 04:26   File size: 12.37 KB
Player Animator v1.9 (2024.1 ONLY) - Animations work in multiplayer now - playerAnimator.zipUploaded on: 07/11/2024 - 18:58   File size: 9.07 KB

Comments

Okay, now with the new version, how can I use the client side procedure triggers?
For example, if I set a trigger in a if statement with the delta movement of event target entity
It does trigger the animation but variables and NBT tags don't trigger.

Yes, but looks like it breaks client blocks. Like if the condition is met, it will trigger only the animation, skipping everything else inside the if statement.

Example, I have a if statement set so that if the x and z delta movement of a player is different than 0 (walking) it will trigger an animation and set a variable to false and a number nbt tag tag to 1. All in the same if statement. When the player walks and the condition is met, only the animation triggers, the variable and NBT tag keeps unchanged. Strangely If I sprint and Jump in the game, then the condition is met, the animation also triggers but the variable and NBT tags change accordingly. This doesn't happen with version 1.8.1 of the plugin.

https://imgur.com/a/mxTvQOm
Look for yourself, this is the code
global trigger is On entity tick update.
It really just needs to check if the player is sitting and if it moves (z and x delta movement ≠ 0), then he stops sitting (sets sitting variable to false) and reset the animation. But the procedure triggers and only the playeranimator block is triggered, it skips every other block in the if statement.

THANK YOU SO MUCH FOR THE LAST UPDATE!!! ANIMATIONS NOW TRIGGER SERVER SIDE YOU SIR ARE A LEGEND.

I’m trying to make a mob that has a tail that moves along with having some custom interaction animations and still uses the same features as Java models (features of the biped such as using the same animations as the player for walking and running holding tools, using them, wearing and displaying armor) I know I can’t use a geckolib model for that so I decided to look around and see how I could possibly get a geckolib animation to work on a Java biped model and that lead me here.
But after doing some reasearch I know that this plugin does not allow for geckolib animations to be used on Java models, so now I ask.

Could you (if it’s even possible) make a plugin so geckolib animations can be used on Java models (specifically for biped models)

Will the animations be visible to other server players?

How do I rename the file if i can't do it after export? Also the player_animation folder doesn't create for me automatically ( Yes I enabled the api )
The game crashes when I try to play the animation even though I tried fixing it using your potential issues thing.