{
  "format_version": "1.19.0",
  "minecraft:attachable": {
    "description": {
      "identifier": "tsu_morph:dolphin_morph",
      "materials": {
        "default": "entity_alphatest"
      },
      "textures": {
        "default": "textures/entity/dolphin"
      },
      "geometry": {
        "default": "geometry.tsu_morph.dolphin"
      },
      "animations": {
        "move": "animation.tsu_morph.dolphin.move",
        "walk": "animation.tsu_morph.dolphin.walk",
        "look_at_target": "animation.tsu_morph.look_at_target",

        "hurt_sounds": "controller.animation.tsu_morph.hurt_sounds",
        "idle_sounds": "animation.tsu_morph.idle_sounds"
      },
      "sound_effects": {
        "hurt": "mob.dolphin.hurt",
        "idle": "mob.dolphin.idle"
      },
      "scripts": {
        "pre_animation": ["v.display_fp = c.is_first_person && !q.is_in_ui && q.is_local_player;"],
        "animate": [
          {
            "move": "q.is_in_water ? query.modified_move_speed : 0"
          },
          {
            "walk": "!q.is_in_water ? query.modified_move_speed : 0"
          },
          "look_at_target",
          "hurt_sounds",
          "idle_sounds"
        ]
      },
      "render_controllers": [{ "controller.render.tsu_morph.default": "!v.display_fp" }]
    }
  }
}
