{
  "format_version": "1.10.0",
  "minecraft:client_entity": {
    "description": {
      "identifier": "mnp_ci:partner_fish_honeyfrost",
      "materials": {
        "default": "entity_alphatest",
        "one_sided": "entity_alphatest_one_sided"
      },
      "textures": {
        "default": "textures/mnp/ci/partner_animals/partner_fish_honeyfrost"
      },
      "geometry": {
        "default": "geometry.mnp_ci.partner_fish_honeyfrost"
      },
      "animations": {
        // Small Piranha Animations
        "small_bite": "animation.mnp_ci.piranha.small.bite",
        "small_burp": "animation.mnp_ci.piranha.small.burp",
        "small_die": "animation.mnp_ci.piranha.small.die",
        "small_grow": "animation.mnp_ci.piranha.small.grow",
        "small_idle": "animation.mnp_ci.piranha.small.idle",
        "small_swim": "animation.mnp_ci.piranha.small.swim",
        "small_sprint": "animation.mnp_ci.piranha.small.sprint",
        // Mid Piranha Animations
        "mid_bite": "animation.mnp_ci.piranha.mid.bite",
        "mid_burp": "animation.mnp_ci.piranha.mid.burp",
        "mid_die": "animation.mnp_ci.piranha.mid.die",
        "mid_idle": "animation.mnp_ci.piranha.mid.idle",
        "mid_grow": "animation.mnp_ci.piranha.mid.grow",
        "mid_swim": "animation.mnp_ci.piranha.mid.swim",
        "mid_sprint": "animation.mnp_ci.piranha.mid.sprint",
        // Big Piranha Animations
        "big_bite": "animation.mnp_ci.piranha.big.bite",
        "big_burp": "animation.mnp_ci.piranha.big.burp",
        "big_die": "animation.mnp_ci.piranha.big.die",
        "big_idle": "animation.mnp_ci.piranha.big.idle",
        "big_grow": "animation.mnp_ci.piranha.big.grow",
        "big_swim": "animation.mnp_ci.piranha.big.swim",
        "big_sprint": "animation.mnp_ci.piranha.big.sprint",
        // General Piranha controller
        "general_ctl": "controller.animation.mnp_ci.piranha.general",
        "sprint_ctl": "controller.animation.mnp_ci.piranha.sprint",
        "bite_ctl": "controller.animation.mnp_ci.piranha.bite",

        "offset": "animation.mnp_ci.piranha.offset" //moves the "offset" locators to match each size
      },
      "render_controllers": ["controller.render.mnp_ci.piranha"],
      "scripts": {
        "pre_animation": ["v.sprint_speed = 0.6;", "v.variant_idx = q.property('mnp_ci:variant') == 'small' ? 0 : q.property('mnp_ci:variant') == 'mid' ? 1 : 2;", "v.is_caught = q.property('mnp_ci:is_caught');"],
        "animate": [
          "offset",
          {
            "general_ctl": "!v.is_caught"
          },
          {
            "sprint_ctl": "!v.is_caught"
          },
          {
            "bite_ctl": "!v.is_caught"
          }
        ]
      },
      "sound_effects": {
        "small_bite": "mob.mnp_ci.piranha.small_bite",
        "mid_bite": "mob.mnp_ci.piranha.mid_bite",
        "big_bite": "mob.mnp_ci.piranha.big_bite",
        "small_burp": "mob.mnp_ci.piranha.small_burp",
        "mid_burp": "mob.mnp_ci.piranha.mid_burp",
        "big_burp": "mob.mnp_ci.piranha.big_burp",
        "small_grow": "mob.mnp_ci.piranha.small_grow",
        "mid_grow": "mob.mnp_ci.piranha.mid_grow",
        "small_sprint": "mob.mnp_ci.piranha.small_sprint",
        "mid_sprint": "mob.mnp_ci.piranha.mid_sprint",
        "big_sprint": "mob.mnp_ci.piranha.big_sprint"
      },
      "spawn_egg": {
        "texture": "mnp_ci:__partner_fish_honeyfrost_spawn_egg"
      }
    }
  }
}
