{
  "format_version": "1.10.0",
  "minecraft:client_entity": {
    "description": {
      "identifier": "mobs:tusklin",
      "materials": {
        "default": "hoglin"
      },
      "textures": {
        "default": "textures/entity/pamobile/mobs_tusklin"
      },
      "geometry": {
        "default": "geometry.mobs_tusklin"
      },
      "spawn_egg": {
        "texture": "mobs:tusklin",
        "texture_index": 0
      },
      "scripts": {
        "pre_animation": [
          "variable.tcos_right_side = (Math.cos(query.modified_distance_moved * 38.17) * query.modified_move_speed / variable.gliding_speed_value) * 57.3;",
          "variable.tcos_left_side = -variable.tcos_right_side;",
          "variable.attack_head_rot =  Math.sin(variable.attack_time * 180.0) * -37.3;"
        ],
        "animate": [
          "walk",
          "look_at_target",
          {
            "attack": "variable.has_target && variable.attack_time >= 0.0"
          }
        ]
      },
      "animations": {
        "walk": "animation.mobs_tusklin.walk",
        "look_at_target": "animation.mobs_tusklin.look_at_target",
        "attack": "animation.mobs_tusklin.attack",
        "hoglin_baby_scaling": "animation.mobs_tusklin.baby_scaling"
      },
      "render_controllers": [
        "controller.render.hoglin"
      ]
    }
  }
}