// @buildsys GENERATED MERGED FILE: DO NOT EDIT DIRECTLY! 
{
  "format_version": "1.10.0",
  "minecraft:client_entity": {
    "description": {
      "identifier": "mnp_ci:animal_pearl_oyster",
      "materials": {
        "default": "entity_alphatest_one_sided"
      },
      "textures": {
        "default": "textures/mnp/ci/entity/animal_pearl_oyster"
      },
      "geometry": {
        "default": "geometry.mnp_ci.animal_pearl_oyster"
      },
      "scripts": {
        "initialize": [
          "v.health = q.health;",
          "v.half_open_0 = math.random_integer(0, 1);",
          "v.half_open_1 = math.random_integer(0, 1);",
          "v.half_open_2 = math.random_integer(0, 1);",
          "v.half_open_3 = math.random_integer(0, 1);",
          "v.pearls_nbr = math.random_integer(0, 2);",
          "v.timer_0 = math.random(0,1) < 0.2 ? -1 : math.random(30, 160);",
          "v.timer_1 = math.random(0,1) < 0.2 ? -1 : math.random(30, 160);",
          "v.timer_2 = math.random(0,1) < 0.2 ? -1 : math.random(30, 160);",
          "v.timer_3 = math.random(0,1) < 0.2 ? -1 : math.random(30, 160);",
          "v.death_rot_factor = 0;"
        ],
        "pre_animation": [
          "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": [
          "setup",
          {
            "setup_0": "q.property('mnp_ci:variant') == 0"
          },
          {
            "setup_1": "q.property('mnp_ci:variant') == 1"
          },
          {
            "setup_2": "q.property('mnp_ci:variant') == 2"
          },
          {
            "setup_3": "q.property('mnp_ci:variant') == 3"
          },
          {
            "controller_1": "q.property('mnp_ci:variant') >= 1"
          },
          {
            "controller_2": "q.property('mnp_ci:variant') >= 2"
          },
          {
            "controller_3": "q.property('mnp_ci:variant') >= 3"
          },
          "controller.hurt",
          "controller_0",
          {
            "cancel_death": "!q.is_alive"
          },
          {
            "death": "!q.is_alive"
          }
        ]
      },
      "animations": {
        "controller.hurt": "controller.animation.mnp_ci.hurt",
        "controller_0": "controller.animation.mnp_ci.pearl_oyster_0",
        "controller_1": "controller.animation.mnp_ci.pearl_oyster_1",
        "controller_2": "controller.animation.mnp_ci.pearl_oyster_2",
        "controller_3": "controller.animation.mnp_ci.pearl_oyster_3",
        "setup": "animation.mnp_ci.pearl_oyster.setup",
        "setup_0": "animation.mnp_ci.pearl_oyster.setup_0",
        "setup_1": "animation.mnp_ci.pearl_oyster.setup_1",
        "setup_2": "animation.mnp_ci.pearl_oyster.setup_2",
        "setup_3": "animation.mnp_ci.pearl_oyster.setup_3",
        "half_open_0": "animation.mnp_ci.pearl_oyster.half_open_0",
        "half_open_1": "animation.mnp_ci.pearl_oyster.half_open_1",
        "half_open_2": "animation.mnp_ci.pearl_oyster.half_open_2",
        "half_open_3": "animation.mnp_ci.pearl_oyster.half_open_3",
        "open_0": "animation.mnp_ci.pearl_oyster.open_0",
        "open_1": "animation.mnp_ci.pearl_oyster.open_1",
        "open_2": "animation.mnp_ci.pearl_oyster.open_2",
        "open_3": "animation.mnp_ci.pearl_oyster.open_3",
        "hurt": "animation.mnp_ci.pearl_oyster.hurt",
        "cancel_death": "animation.mnp_ci.common.cancel_death",
        "death": "animation.mnp_ci.pearl_oyster.death"
      },
      "particle_effects": {
        "bubbles": "mnp_ci:pearl_oyster_bubbles"
      },
      "render_controllers": [
        "controller.render.mnp_ci.pearl_oyster"
      ],
      "spawn_egg": {
        "texture": "mnp_ci:spawn_egg_animal_pearl_oyster"
      }
    }
  }
}