//This JSON was modified by Rainvay_ZCYF (@ZouChenyunfei). Please do not use this document without permission.
{
  "format_version": "1.10.0",
  "animation_controllers": {
    "controller.animation.drowned.attack.rotations": {
      "initial_state": "default",
      "states": {
        "default": {
          "animations": [ "zombie_attack_bare_hand" ],
          "transitions": [
            {
              "one_hand_attack": "query.is_item_equipped('off_hand')"
            },
            {
              "spear_attack": "variable.is_brandishing_spear && !query.is_item_equipped('off_hand')"
            }
          ]
        },
        "one_hand_attack": {
          "animations": [ "zombie_attack_bare_hand" ],
          "transitions": [
            {
              "default": "!query.is_item_equipped('off_hand')"
            },
            {
              "spear_attack": "variable.is_brandishing_spear && !query.is_item_equipped('off_hand')"
            }
          ]
        },
        "spear_attack": {
          "animations": [ "zombie_attack_bare_hand", "attack_rotations", "brandish_spear" ],
          "transitions": [
            {
              "default": "!query.is_item_equipped('off_hand') && !variable.is_brandishing_spear"
            },
            {
              "one_hand_attack": "query.is_item_equipped('off_hand')"
            }
          ]
        }
      }
    }
  }
}
