{
  "format_version": "1.19.0",
  "minecraft:attachable": {
    "description": {
      "identifier": "tsu_morph:fox_morph",
      "materials": {
        "default": "entity_alphatest"
      },
      "textures": {
        "default": "textures/entity/fox/fox"
      },
      "geometry": {
        "default": "geometry.tsu_morph.fox"
      },
      "animations": {
        "walk": "animation.tsu_morph.quadruped.walk",
        "look_at_target": "animation.common.look_at_target",
        "crouch": "animation.tsu_morph.fox.crouch",
        "sit": "animation.tsu_morph.fox.sit",
        "pounce": "animation.tsu_morph.fox.pounce",

        "hurt_sounds": "controller.animation.tsu_morph.hurt_sounds",
        "idle_sounds": "animation.tsu_morph.idle_sounds"
      },
      "sound_effects": {
        "hurt": "mob.fox.hurt",
        "idle": "mob.fox.ambient"
      },
      "scripts": {
        "initialize": [
          "v.smooth_vertical_speed = 0;",
          "v.step_interval = 0.21;"
        ],
        "pre_animation": [
          "v.smooth_vertical_speed = math.lerp(v.smooth_vertical_speed, q.vertical_speed, 3 * q.delta_time);",
          "v.display_fp = c.is_first_person && !q.is_in_ui && q.is_local_player;"
        ],
        "animate": [
          {
            "walk": "q.modified_move_speed"
          },
          {
            "sit": "q.is_sneaking && !q.is_moving"
          },
          {
            "crouch": "q.is_sneaking && q.is_moving"
          },
          {
            "pounce": "!q.is_on_ground"
          },
          "look_at_target",
          "hurt_sounds",
          "idle_sounds"
        ]
      },
      "render_controllers": [
        {
          "controller.render.tsu_morph.default": "!v.display_fp"
        }
      ]
    }
  }
}