{
  "format_version": "1.10.0",
  "animation_controllers": {
    "controller.animation.crl.piglin.attack": {
      "initial_state": "default",
      "states": {
        "ranged_charge": {
          "animations": ["crossbow_charge", "walk"],
          "transitions": [
            {
              "default": "variable.attack_state == 0  ||  query.is_admiring"
            },
            {
              "ranged_hold": "variable.attack_state == 1"
            }
          ]
        },
        "default": {
          "animations": ["walk_with_arms"],
          "transitions": [
            {
              "ranged_hold": "query.variant == 0 && variable.attack_state == 1 && !query.is_admiring"
            },
            {
              "ranged_charge": "query.variant == 0 && variable.attack_state == 2 && !query.is_admiring"
            },
            {
              "hand_attack": "variable.has_target && query.variant == 1 && !query.is_item_equipped && variable.attack_time >= 0.0 && !query.is_admiring"
            },
            {
              "melee_attack": "variable.has_target && query.variant == 1 && query.is_item_equipped && variable.attack_time >= 0.0 && !query.is_admiring"
            }
          ]
        },
        "ranged_hold": {
          "animations": ["crossbow_hold", "walk"],
          "transitions": [
            {
              "default": "variable.attack_state == 0  ||  query.is_admiring"
            },
            {
              "ranged_charge": "variable.attack_state == 2"
            }
          ]
        },
        "melee_attack": {
          "animations": ["melee_attack", "walk"],
          "transitions": [
            {
              "default": "!query.is_item_equipped || !variable.has_target || variable.attack_time < 0.0 ||  query.is_admiring"
            }
          ]
        },
        "hand_attack": {
          "animations": ["hand_attack", "walk"],
          "transitions": [
            {
              "default": "query.is_item_equipped || !variable.has_target || variable.attack_time < 0.0 ||  query.is_admiring"
            }
          ]
        }
      }
    }
  }
}
