//This JSON was modified by AgentMindStorm (@agentms_) and LateLag (@LateLagMC). Please do not use this document without permission.
{
  "format_version": "1.10.0",
  "minecraft:client_entity": {
    "description": {
      "identifier": "minecraft:drowned",
      "min_engine_version": "1.16.0",
      "scripts": {
        "pre_animation": [
          "variable.tcos0 = (Math.cos(query.modified_distance_moved * 38.17 * (query.is_baby ? 3.52173 : 1.0)) * query.modified_move_speed * (query.is_baby ? 0.65714 : 1.0) / variable.gliding_speed_value) * 57.3;"
        ],
        "animate": [
          { "humanoid_big_head": "query.is_baby" },
          "look_at_target",
          "move",
          { "riding.arms": "query.is_riding" },
          { "riding.legs": "query.is_riding" },
          "holding",
          { "charging": "query.is_charging" },
          "attack_controller",
          { "brandish_spear": "variable.is_brandishing_spear" },
          "bob",
          { "damage_nearby_mobs": "variable.damage_nearby_mobs" },
          { "use_item_progress": "( variable.use_item_interval_progress > 0.0 ) || ( variable.use_item_startup_progress > 0.0 )" },
          { "swimming": "variable.swim_amount > 0.0" },
          { "drowned_chasing": "variable.has_target && variable.swim_amount <= 0.0" },
          "item_pose"
        ]
      },
      "animations": {
        "humanoid_big_head": "animation.humanoid.big_head",
        "look_at_target": "controller.animation.humanoid.look_at_target",
        "look_at_target_default": "animation.humanoid.look_at_target.default",
        "look_at_target_gliding": "animation.humanoid.look_at_target.gliding",
        "look_at_target_swimming": "animation.humanoid.look_at_target.swimming",
        "move": "animation.humanoid.move",
        "riding.arms": "animation.humanoid.riding.arms",
        "riding.legs": "animation.humanoid.riding.legs",
        "holding": "animation.humanoid.holding",
        "brandish_spear": "animation.humanoid.brandish_spear",
        "charging": "animation.humanoid.charging",
        "bob": "animation.humanoid.bob",
        "damage_nearby_mobs": "animation.humanoid.damage_nearby_mobs",
        "use_item_progress": "animation.humanoid.use_item_progress",
        "attack_controller": "controller.animation.drowned.attack.rotations",
        "zombie_attack_bare_hand": "animation.zombie.attack_bare_hand",
        "attack_rotations": "animation.drowned.attack.rotations",
        "drowned_chasing": "animation.drowned.attack",
        "swimming": "animation.drowned.swimming",
        "item_pose": "controller.animation.item_pose.drowned",
        "invisible.left": "animation.item_pose.invisible.left",
        "invisible.right": "animation.item_pose.invisible.right",
        "flat.left": "animation.item_pose.flat.left",
        "flat.right": "animation.item_pose.flat.right",
        "perpendicular.left": "animation.item_pose.perpendicular.left",
        "perpendicular.right": "animation.item_pose.perpendicular.right",
        "banner.left": "animation.item_pose.banner.left",
        "banner.right": "animation.item_pose.banner.right",
        "fishing_rod.left": "animation.item_pose.fishing_rod.left",
        "fishing_rod.right": "animation.item_pose.fishing_rod.right",
        "goat_horn.right": "animation.item_pose.goat_horn.right",
        "pointed_dripstone.left": "animation.item_pose.pointed_dripstone.left",
        "pointed_dripstone.right": "animation.item_pose.pointed_dripstone.right",
        "brush.left": "animation.item_pose.brush.left",
        "brush.right": "animation.item_pose.brush.right",
        "totem_of_undying.left": "animation.item_pose.totem_of_undying.left",
        "trident.arm": "animation.item_pose.trident.arm",
        "trident.item": "animation.item_pose.trident.item"
      }
    }
  }
}
