I need help with my custom entity's animation

Started by Iced Tea Addict on

Topic category: Help with modding (Java Edition)

Last seen on 03:16, 8. May 2021
Joined Apr 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I need help with my custom entity's animation

I have made and managed to set up an animation for my custom entity, however, one part of the entity isn't animating. Also, when the entity turns, it shifts out of place for a bit, while the hitbox remains in position, before shifting back. Does anyone have any ideas as to why this is happening?

Here is the animation file's contents. Segment1 is the part that isn't animating. Please tell me if any more information is needed to give a proper answer.
{
    "format_version": "1.8.0",
    "animations": {
        "animation.bone_viper.move": {
            "loop": true,
            "animation_length": 2,
            "bones": {
                "segment1": {
                    "rotation": {
                        "0.0": {
                            "vector": [0, -47.5, 0]
                        },
                        "1.0": {
                            "vector": [0, 47.5, 0]
                        },
                        "2.0": {
                            "vector": [0, -47.5, 0]
                        }
                    }
                },
                "segment2": {
                    "rotation": {
                        "0.0": {
                            "vector": [0, 122.5, 0]
                        },
                        "1.0": {
                            "vector": [0, -122.5, 0]
                        },
                        "2.0": {
                            "vector": [0, 122.5, 0]
                        }
                    }
                },
                "segment3": {
                    "rotation": {
                        "0.0": {
                            "vector": [0, -105, 0]
                        },
                        "1.0": {
                            "vector": [0, 105, 0]
                        },
                        "2.0": {
                            "vector": [0, -105, 0]
                        }
                    }
                }
            }
        }
    }
}