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
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
The plugin is either broken, or the instructions are not at all clear and I'm doing something wrong. I've followed the instructions to a tee, animated the right model via Blockbench, created the animation setup procedure, placed the animation file(s) in the right folder, enables the API, and the game still crashes when I try to play the animation.
I have tried running the plugin along with the PlayerAnimations Mod. No avail. I have tried both using the individual animation files from Blockbench and putting the *file* name in the procedure block, and using a single combined animation file from Blockbench and putting the *animation* name in the procedure block.
Please, fix the plugin, or at least give us a video tutorial on how to do this...
I tried playtesting an animation by making it be activated by a keybind but when i pressed the key ingame the game crashed. I enabled the PlayAnimator API, made a play_animation folder in the right place, and added in the json file in said folder (which i did not rename after its export)
i added the SetupAnimations procedure too so i'm not sure what went wrong.
Can you do first person animations?