{
  "format_version": "1.19.0",
  "minecraft:attachable": {
    "description": {
      "identifier": "tsu_morph:bee_morph",
      "materials": {
        "default": "entity_alphatest"
      },
      "textures": {
        "default": "textures/entity/bee/bee"
      },
      "geometry": {
        "default": "geometry.tsu_morph.bee"
      },
      "animations": {
        "flying": "animation.tsu_morph.bee.flying",
        "bee_sting": "animation.tsu_morph.bee.sting",
        "bee_no_stinger": "animation.tsu_morph.bee.no_stinger",
        "bee_fly_bobbing": "animation.tsu_morph.bee.fly.bobbing",

        "hurt_sounds": "controller.animation.tsu_morph.hurt_sounds"
      },
      "sound_effects": {
        "hurt": "mob.bee.hurt"
      },
      "scripts": {
        "initialize": [
          "v.attack_time = 0;"
        ],
        "pre_animation": [
          "v.display_fp = c.is_first_person && !q.is_in_ui && q.is_local_player;",
          "v.is_attacking = q.player_level == 5678 ? 1 : 0;",
          "v.attack_time = math.lerp(v.attack_time, v.is_attacking, 0.1);"
        ],
        "animate": [
          "flying",
          "bee_fly_bobbing",
          {
            "bee_sting": "v.attack_time > 0"
          },
          "hurt_sounds"
        ]
      },
      "render_controllers": [
        {
          "controller.render.tsu_morph.default": "!v.display_fp"
        }
      ]
    }
  }
}