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:
17581
Upvotes: 175
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 a error
Task :compileJava FAILED
C:\Users\......\MCreatorWorkspaces\anim_player\src\main\java\net\mcreator\animplayer\procedures\SetupAnimationsProcedure.java:31: error: cannot find symbol
private static IAnimation registerPlayerAnimations(net.minecraft.client.player.AbstractClientPlayer player) {
^
symbol: class IAnimation
location: class SetupAnimationsProcedure
C:\Users\......\MCreatorWorkspaces\anim_player\src\main\java\net\mcreator\animplayer\procedures\SetupAnimationsProcedure.java:28: error: package PlayerAnimationFactory does not exist
PlayerAnimationFactory.ANIMATION_DATA_FACTORY.registerFactory(new ResourceLocation("anim_player", "player_animation"), 1000, SetupAnimationsProcedure::registerPlayerAnimations);
^

Is it possible to use a plugin without adding a dependency? That is, for example, I use a procedure and make it a condition that it will only work if the mod is installed, and there will be no dependency and animations will be played only for those who have installed the mod

Hello everyone !
I was testing animations when I discovered that some files cannot be loaded and get ignored, causing the game to crash if you try to play them.
I searched for a looong time and found that : animation names are CASE SENSITIVE ! (lowercase only)
Exemple : waving.json : loads / somePose.json : ignored
Hope this'll help :)

Hey, I fixed some issues with the code in the SetupAnimations class.
Allows for looping animations, and sending blank animation strings to end them AND no crashing when a blank string is sent.

My discord is noiilive

getting a ton of build errors trying to use setup animations procedure

the animations don't work. I don't even have a build error. I'm on 2024.2 for 1.20.1 forge.

i submitted a request in the issue tracker for more info but i to am having trouble with the "SetupAnimations" procedure resulting in a bunch of errors

When trying to save the procedure "SetupAnimations" (It has the same name and it's a blank procedure), it gives a build error (I'm using v1.9)

i have a build error and i cant fix it i have the producule thing and the on player tick update thing and i put the other thing in it and it dossent work i dont have the other event trigger with the player animator

in my first-person animation, the main hand is visible, how do I remove it?

ava.lang.NullPointerException: Cannot invoke "dev.kosmx.playerAnim.api.IPlayable.playAnimation()" because the return value of "dev.kosmx.playerAnim.minecraftApi.PlayerAnimationRegistry.getAnimation(net.minecraft.resources.ResourceLocation)" is null

Getting this error always when I tried to play the animation

when i try to make backflip animation its -360 degrees on blockbench, same works in game but after the animation player glitches and setting itself 0 degrees. how can i fix that?