#Player animator; geckolib animations

1 messages · Page 1 of 1 (latest)

dire nebula
#

I have a simple one as an example, like so.

{
  "format_version": "1.8.0",
  "animations": {
    "animation.model.new": {
      "animation_length": 0.5,
      "bones": {
        "LeftLeg": {
          "rotation": {
            "0.0": {
              "vector": [0, 0, 0]
            },
            "0.5": {
              "vector": [-132.5, 0, 0]
            }
          }
        }
      }
    }
  }
}```
#

again, super sorry for the simple question.

#

I followed the example setup and the waving.json works perfectly.

slim cypress
#

GeckoLib format is supported, but molang is not

dire nebula
slim cypress
dire nebula
dire nebula
#

I know I am probably coming off as annoying, just found out about this github quite a while ago and decided to look into it, it looks perfect.

#

how exactly would I get it to 'work' in game then?

slim cypress
# dire nebula how exactly would I get it to 'work' in game then?

https://github.com/KosmX/minecraftPlayerAnimator
The readme details some of that, and there are some examples

Simply put the animation in the correct folder (in assets), and use that

However you can't just play it (collision handling with other mods)

Animation stored in a priority list

The animation with the highest priority will be player,
If the highest priority one is inactive, the program evaluate a lower priority one

vanilla animations has the lowest possible priority

register a layer, and insert an animation what you want to play

dire nebula
#

I have the mixins set up exactly like in the example mod for fabric; the waving works perfect when I right click with paper.

slim cypress
#

The serializer in the library will recognize your format, hopefully it won't cause any trouble

dire nebula
#

Awesome; so I have the json file in player_animation, in assets->(mymodid)->player_animation

#

do I rename it to something like waving.animation.json and then reflect that in the PlayerAnimationExample class?

slim cypress
slim cypress
slim cypress
dire nebula
#

it works, thank you so much.

slim cypress
#

it has to be a valid MC Identifier

ym