{
  "format_version": "1.19.0",
  "minecraft:attachable": {
    "description": {
      "identifier": "tsu_morph:salmon_morph",
      "materials": {
        "default": "entity_alphatest"
      },
      "textures": {
        "default": "textures/entity/fish/salmon"
      },
      "geometry": {
        "default": "geometry.tsu_morph.salmon"
      },
      "animations": {
        "flop": "animation.tsu_morph.cod.flop",
        "swim": "animation.tsu_morph.cod.swim",
        "look_at_target": "animation.tsu_morph.look_at_target",

        "hurt_sounds": "controller.animation.tsu_morph.hurt_sounds"
      },
      "sound_effects": {
        "hurt": "mob.fish.hurt"
      },
      "scripts": {
        "pre_animation": ["v.display_fp = (c.is_first_person || q.distance_from_camera < 2.0) && !q.is_in_ui && q.is_local_player;"],
        "animate": [
          {
            "flop": "!query.is_in_water"
          },
          {
            "swim": "query.is_in_water"
          },
          "hurt_sounds"
        ]
      },
      "render_controllers": [
        {
          "controller.render.tsu_morph.default": "!v.display_fp"
        }
      ]
    }
  }
}
