{
  "format_version": "1.19.0",
  "minecraft:attachable": {
    "description": {
      "identifier": "tsu_morph:morpher",
      "materials": {
        "default": "entity_emissive_alpha",
        "blend": "entity_alphablend",
        "additive": "tsu_entity_blend_additive_blend"
      },
      "textures": {
        "default": "textures/tsu/morph/entity/morpher"
      },
      "geometry": {
        "default": "geometry.tsu_morph.morpher"
      },
      "animations": {
        "wield_fp": "animation.tsu_morph.morpher.wield_fp",
        "wield_tp": "animation.tsu_morph.morpher.wield_tp",
        "flicker": "animation.tsu_morph.morpher.flicker",
        "turn_on": "animation.tsu_morph.morpher.turn_on",
        "ability_item_use": "animation.tsu_morph.morpher.click",
        "ability_item_use_controller": "controller.animation.tsu_morph.ability_item_use"
      },
      "scripts": {
        "initialize": [
          "v.has_ability_item = 0;"
        ],
        "pre_animation": [
          "v.has_ability_item = q.is_item_name_any('slot.weapon.mainhand', 0, 'tsu_morph:morpher');"
        ],
        "animate": [
          {
            "wield_fp": "(c.is_first_person && !q.is_in_ui) && (v.has_ability_item ?? 0)"
          },
          {
            "wield_tp": "(!c.is_first_person || q.is_in_ui) && (v.has_ability_item ?? 0)"
          },
          {
            "flicker": "(v.has_ability_item ?? 0)"
          },
          {
            "turn_on": "(v.has_ability_item ?? 0)"
          },
          {
            "ability_item_use_controller": "(v.has_ability_item ?? 0)"
          }
        ]
      },
      "sound_effects": {
        "static": "tsu_morph.morpher.static",
        "equip": "tsu_morph.morpher.equip"
      },
      "render_controllers": [
        "controller.render.tsu_morph.morpher"
      ]
    }
  }
}