{
  "format_version": "1.10.0",
  "minecraft:client_entity": {
    "description": {
      "identifier": "minecraft:evocation_fang",
      "materials": {
        "default": "fang"
      },
      "textures": {
        "default": "textures/entity/illager/fangs"
      },
      "geometry": {
        "default": "geometry.evocation_fang"
      },
      "scripts": {
        "pre_animation": [
          "variable.remaining_life = (query.life_span - 2.0) - (query.life_time*20.0);",
          "variable.animation_progress = query.life_span == 0.0 ? 0.0 : (variable.remaining_life < 1.0 ? 1.0 : 1.0 - Math.min(1.0, variable.remaining_life / 20.0));",
          "variable.bite_amount = (1 - Math.Pow(Math.Clamp(variable.animation_progress*2.0, 0, 1.0), 3.0)) * 0.35 * 180;",
          "variable.y_offset = (variable.animation_progress + Math.sin(variable.animation_progress*2.7*80.0)) * 0.6 * 12.0;"
        ],
        "animate": [
          "bite"
        ],
        "scale": "variable.animation_progress > 0.9 ? (1.0 - variable.animation_progress) / 0.1 : 1.0"
      },
      "animations": {
        "bite": "animation.evocation_fang.bite"
      },
      "render_controllers": [ "controller.render.evocation_fang" ]
      }
    }
}
