#Walk Animation Not Playing on Custom Model (Help Needed)

1 messages · Page 1 of 1 (latest)

finite pollen
#

I've replaced the vanilla cow with a custom "Kalabaw" model. The model and texture are working fine in the game, but the walk animation doesn't play when the mob moves. It just slides.

Can anyone see what might be wrong with my files?

This is my cow.entity.json file

{
    "format_version": "1.10.0",
    "minecraft:client_entity": {
        "description": {
            "identifier": "minecraft:cow",
            "materials": {
                "default": "cow" 
            },
            "textures": {
                "default": "textures/entity/kalabaw"
            },
            "geometry": {
                "default": "geometry.kalabaw"
            },
            "animations": {
                "walk": "animation.kalabaw.walk",
                "look_at_target": "animation.common.look_at_target",
                "baby_transform": "animation.cow.baby_transform"
            },
            "scripts": {
                "animate": [
                    "look_at_target",
                    {
                        "walk": "query.modified_move_speed"
                    }
                ]
            },
            "render_controllers": [
                "controller.render.cow"
            ]
        }
    }
}
#

And this is my kalabaw.animation.json file

{
  "format_version": "1.10.0",
  "animations": {
    "animation.kalabaw.walk": {
      "loop": true,
      "animation_length": 2,
      "bones": {
        "head3": {
          "rotation": {
            "0.0": [12.5, 0, 0],
            "1.0": [-2.5, 0, 0],
            "2.0": [12.5, 0, 0]
          },
          "position": {
            "0.0": [0, -1, 0],
            "1.0": [0, -2, 0],
            "2.0": [0, -1, 0]
          }
        },
        "left_leg2": {
          "rotation": {
            "0.0": [0, 0, 0],
            "0.25": [45, 0, 0],
            "0.75": [0, 0, 0],
            "1.0": [0, 0, 0],
            "2.0": [0, 0, 0]
          }
        },
        "right_leg2": {
          "rotation": {
            "1.0": [0, 0, 0],
            "1.5": [47.5, 0, 0],
            "2.0": [0, 0, 0]
          }
        },
        "body2": {
          "rotation": {
            "0.0": [-2.5, 0, 0],
            "1.0": [2.5, 0, 0],
            "2.0": [-2.5, 0, 0]
          },
          "position": {
            "0.0": [0, -0.00333, 0],
            "1.0": [0, -1.00333, 0],
            "2.0": [0, -0.00333, 0]
          }
        },
        "right_leg1": {
          "rotation": {
            "0.0": [27.5, 0, 0],
            "0.25": [0, 0, 0],
            "0.75": [0, 0, 0],
            "1.25": [0, 0, 0],
            "1.75": [55, 0, 0],
            "2.0": [27.5, 0, 0]
          }
        },
        "left_leg1": {
          "rotation": {
            "0.25": [0, 0, 0],
            "0.5": [0, 0, 0],
            "1.0": [50, 0, 0],
            "1.5": [0, 0, 0]
          }
        }
      }
    },
    "animation.cow.baby_transform": {
      "loop": true,
      "bones": {
        "head": {
          "position": [0, 4, 4],
          "scale": 2
        }
      }
    }
  }
}
#

I'm new to making texture packs (I'm Filipino, pwede kayo mag-tagalog if needed) 🙏🏽

lament bane
#

@finite pollen would you mind sending the model file as well?

lament bane
#

Hmm, that doesn't work properly, now that I tested it a bit more