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

Supported MCreator versions
2022.2
2022.3
2023.1
2023.2
2023.3
2023.4
2024.1
2024.2
2024.3
2024.4
Tags / plugin type
API support
Global triggers
Procedures
player animator
Downloads:
16359
Upvotes: 168
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.zip Uploaded on: 04/13/2024 - 04:26   File size: 12.37 KB
Player Animator v1.9 (2024.1, 2024.2 ONLY) - (1.20.1 only) server synced - playerAnimator_1.zip Uploaded on: 07/27/2024 - 09:18   File size: 9.08 KB
Player Animator v2.1 (2024.3, 2024.4 ONLY) - (1.20.1 forge, 1.21.1 neoforge) server synced (server crash fixed) - playerAnimator.zip Uploaded on: 01/16/2025 - 11:47   File size: 8.98 KB

Comments

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

Does this model have any naming requirements for the animations? Or does this mod conflict with Geckolib? My animations have not been running properly. QAQ

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.

I also managed to make the animation play with the procedure "when the entity changes the item" I also discovered that if I want my character to continue playing an animation use loop

When I load this plugin in an empty workspace eben with the SetupAnimations procedure it tells me that the mod files do not compile correctly PEASE fix this, if the plugin doesn't even work why have it up at all

Every time that i try to use the animation, the game crashes but i check i don't rename the animations and the file is on player_animation, what is happening?

A potential fix for the animations not playing is adding Emotecraft's server-side API because on the playerAnimator github page it says, "If you want to trigger simple animations from the server, you might want to use Emotecraft's server-side API." But I have no clue where to even begin with making plugins for API

[Render thread/FATAL] [ne.mi.co.ForgeMod/]: Preparing crash report with UUID 8edbb17c-ad05-4a40-b5b1-48d5fb96fd87
#@!@# Game crashed! Crash report saved to: #@!@# C:\Users\Barretos\MCreatorWorkspaces\hians_narutomod\run\.\crash-reports\crash-2023-07-01_21.38.27-client.txt

It was working fine until I tried to put in a new animation, I deleted them all to make sure it's not the animation, and apparently it wasn't, my mcreator opens the launcher but crashes before it finishes loading.

Is player model from blockbench CEM templates is fine for plugin? I just can't understand how to download from the link with official bbmodel 👉👈

The animation plays perfect fine on singleplayer worlds but other people can't see your individual animation on servers, they only see their own.