Fabric example mod, modified to demonstrate how to use PlayerAnimator library on Fabric.
This example uses mixins, to see a mixinless setup (not recommended) see forge example.
For setup instructions please see the fabric wiki page that relates to the IDE that you are using.
This will load animations form resource packs, including the mod pack.
//Use this to get a loaded KeyframeAnimation
AnimationResourceLoading.animations.get(animationID)
An example animation event, what will make the player wave
when using a paper item.
Of course, you'll create your own events with mixins or packets.
This template is available under the CC0 license. Feel free to learn from it and incorporate it in your own projects.