//This JSON was modified by AgentMindStorm (@agentms_). Please do not use this document without permission.
{
  "format_version": "1.10.0",
  "minecraft:client_entity": {
    "description": {
      "identifier": "minecraft: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 = 45 / (1 + math.exp(query.anim_time * 35 - 6));",
          "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 : 2.5 / (1 + math.exp(-query.anim_time * 45 + 6))"
      }
    }
  }
}