// @buildsys GENERATED MERGED FILE: DO NOT EDIT DIRECTLY! 
{
  "format_version": "1.10.0",
  "minecraft:client_entity": {
    "description": {
      "identifier": "mnp_ci:animal_anchovy",
      "materials": {
        "default": "entity_alphatest_one_sided"
      },
      "textures": {
        "default": "textures/mnp/ci/entity/animal_anchovy"
      },
      "geometry": {
        "default": "geometry.mnp_ci.animal_anchovy"
      },
      "scripts": {
        "initialize": [
          "v.yaw_speed = math.clamp(q.yaw_speed * 0.2, -45, 45);",
          "v.death_rot_factor = 0;"
        ],
        "pre_animation": [
          "v.yaw_speed = math.lerp( math.clamp(q.yaw_speed * 0.2, -45, 45), v.yaw_speed, math.exp(-8 * q.delta_time));",
          "v.death_rot_factor = q.is_alive ? 0 : math.min(1, math.sqrt(math.max(0, q.death_ticks + q.frame_alpha -0.5)*0.08));",
          "v.is_on_lure = q.property('mnp_ci:is_on_lure');",
          "v.is_caught = q.property('mnp_ci:is_caught');"
        ],
        "animate": [
          {
            "flop": "!q.is_in_water && !q.is_levitating && !v.is_caught"
          },
          {
            "flop.spread": "!q.is_in_water && !q.is_levitating"
          },
          {
            "swim": "q.is_in_water || q.is_levitating"
          },
          {
            "swim.angle": "q.is_in_water || q.is_levitating"
          },
          {
            "swim.shuffle": "q.is_in_water"
          },
          {
            "swim.spread": "q.is_in_water || q.is_levitating"
          },
          {
            "cancel_death": "!q.is_alive"
          },
          {
            "death": "!q.is_alive"
          }
        ]
      },
      "animations": {
        "flop": "animation.mnp_ci.anchovy.flop",
        "flop.spread": "animation.mnp_ci.anchovy.flop.spread",
        "swim": "animation.mnp_ci.anchovy.swim",
        "swim.shuffle": "animation.mnp_ci.anchovy.swim.shuffle",
        "swim.angle": "animation.mnp_ci.anchovy.swim.angle",
        "swim.spread": "animation.mnp_ci.anchovy.swim.spread",
        "cancel_death": "animation.mnp_ci.common.cancel_death",
        "death": "animation.mnp_ci.anchovy.death"
      },
      "render_controllers": [
        "controller.render.default"
      ],
      "spawn_egg": {
        "texture": "mnp_ci:spawn_egg_animal_anchovy"
      }
    }
  }
}