// @buildsys GENERATED MERGED FILE: DO NOT EDIT DIRECTLY! 
{
  "format_version": "1.10.0",
  "minecraft:client_entity": {
    "description": {
      "identifier": "mnp_ci:animal_pelican",
      "materials": {
        "default": "entity_alphatest_one_sided"
      },
      "textures": {
        "default": "textures/mnp/ci/entity/animal_pelican"
      },
      "geometry": {
        "default": "geometry.mnp_ci.animal_pelican"
      },
      "scripts": {
        "initialize": [
          "v.prev_time_stamp = q.time_stamp;",
          "v.velocityY = 0;",
          "v.prevPosY = q.position(1);",
          "v.pitch = 0;",
          "v.smooth_speed = q.ground_speed;",
          "v.smooth_in_water = q.is_in_water;"
        ],
        "pre_animation": [
          "q.time_stamp > v.prev_time_stamp ? {v.velocityY = q.position(1) - v.prevPosY; v.prevPosY = q.position(1);};",
          "v.pitch = math.lerp(math.clamp(-v.velocityY * 300, -40, 40), v.pitch, math.exp(-q.delta_time));",
          "v.smooth_speed = math.lerp(q.ground_speed, v.smooth_speed, math.exp(-q.delta_time));",
          "v.smooth_in_water = math.lerp(q.is_in_water * 2, v.smooth_in_water, math.exp(-q.delta_time));",
          "v.prev_time_stamp = q.time_stamp;",
          "v.is_on_lure = q.property('mnp_ci:is_on_lure');",
          "v.is_caught = q.property('mnp_ci:is_caught');"
        ],
        "animate": [
          "controller",
          {
            "float": "math.min(v.smooth_in_water, 1)"
          },
          "look_at_target"
        ]
      },
      "animations": {
        "controller": "controller.animation.mnp_ci.bird",
        "idle": "animation.mnp_ci.pelican.idle",
        "float": "animation.mnp_ci.pelican.float",
        "walk": "animation.mnp_ci.pelican.walk",
        "fly": "animation.mnp_ci.pelican.fly",
        "fly.flap": "animation.mnp_ci.pelican.fly.flap",
        "fly.angle": "animation.mnp_ci.pelican.fly.angle",
        "look_at_target": "animation.mnp_ci.common.look_at_target"
      },
      "render_controllers": [
        "controller.render.default"
      ],
      "spawn_egg": {
        "texture": "mnp_ci:spawn_egg_animal_pelican"
      }
    }
  }
}