{
  "format_version": "1.10.0",
  "animation_controllers": {
    "controller.animation.asta": {
      "states": {
        "default": {
          "transitions": [
            { "fly": "q.property('wesl3y:animes') == 2 && q.property('wesl3y:characters') == 1 && query.is_sprinting && q.is_jumping && !q.is_riding && !q.is_in_water" },
            { "bull_thrust": "q.get_equipped_item_name=='asta_skills' && q.property('wesl3y:animes') == 2 && q.property('wesl3y:characters') == 1 && query.scoreboard('wg:skill') == 0 && query.scoreboard('wg:cooldown') == 0 && q.is_using_item" },
            { "black_cut": "q.get_equipped_item_name=='asta_skills' && q.property('wesl3y:animes') == 2 && q.property('wesl3y:characters') == 1 && query.scoreboard('wg:skill') == 1 && query.scoreboard('wg:cooldown2') == 0 && q.is_using_item" },
            { "attack1": "q.get_equipped_item_name=='asta_skills' && q.property('wesl3y:animes') == 2 && q.property('wesl3y:characters') == 1 && v.attack_time > 0.0" }
          ],
          "on_entry": [
            "/event entity @s wesl3y:skill0",
            "/inputpermission set @s movement enabled"
          ]
        },
        "attack1": {
          "animations": ["timer.0_25"],
          "transitions": [
            { "default": "q.get_equipped_item_name!='asta_skills'" },
            { "attack2": "v.attack_time > 0.0 && q.any_animation_finished" },
            { "attack1_2": "query.any_animation_finished" }
          ],
          "on_entry": [
            "/event entity @s wesl3y:skill1",
            "/tag @s add asta_reflect"
          ],
          "on_exit": [
            "/tag @s remove asta_reflect"
          ]
        },
        "attack1_2": {
          "animations": ["timer.0_2"],
          "transitions": [
            { "attack2": "v.attack_time > 0.0" },
            { "default": "query.any_animation_finished" }
          ]
        },
        "attack2": {
          "animations": ["timer.0_25"],
          "transitions": [
            { "default": "q.get_equipped_item_name!='asta_skills'" },
            { "attack3": "v.attack_time > 0.0 && query.any_animation_finished" },
            { "attack2_2": "query.any_animation_finished" }
          ],
          "on_entry": [
            "/event entity @s wesl3y:skill2",
            "/tag @s add asta_reflect"
          ],
          "on_exit": [
            "/tag @s remove asta_reflect"
          ]
        },
        "attack2_2": {
          "animations": ["timer.0_2"],
          "transitions": [
            { "attack3": "v.attack_time > 0.0" },
            { "default": "query.any_animation_finished" }
          ]
        },
        "attack3": {
          "animations": ["timer.0_25"],
          "transitions": [
            {
              "default": "q.get_equipped_item_name!='asta_skills'"
            },
            {
              "attack3_2": "query.any_animation_finished"
            }
          ],
          "on_entry": [
            "/event entity @s wesl3y:skill3",
            "/tag @s add asta_reflect"
          ],
          "on_exit": [
            "/tag @s remove asta_reflect"
          ]
        },
        "attack3_2": {
          "animations": ["timer.0_2"],
          "transitions": [
            {
              "default": "query.any_animation_finished"
            }
          ]
        },
        "fly": {
          "animations": ["timer.0_3"],
          "transitions": [
            {
              "default": "query.any_animation_finished"
            }
          ],
          "on_entry": [
            "/ride @s summon_ride wesl3y:fly_ride no_ride_change wesl3y:asta"
          ]
        },
        "bull_thrust": {
          "animations": ["timer.0_25"],
          "transitions": [
            {
              "bull_thrust2": "query.any_animation_finished"
            }
          ],
          "on_entry": [
            "/event entity @s wesl3y:skill4"
          ],
          "on_exit": [
            "/particle wesl3y:asta_bull_thrust"
          ]
        },
        "bull_thrust2": {
          "animations": ["timer.1_0"],
          "transitions": [
            {
              "default": "q.get_equipped_item_name!='asta_skills'"
            },
            {
              "default": "query.any_animation_finished"
            }
          ],
          "on_entry": [
            "/tag @s add asta_bull_thrust",
            "/summon wesl3y:asta_damage ^^^-1.5 ~~ wesl3y:bull_thrust",
            "/effect @s slow_falling 3 1 true"
          ],
          "on_exit": [
            "/tag @s remove asta_bull_thrust",
            "/scoreboard players set @s wg:cooldown 40"
          ]
        },
        "black_cut": {
          "animations": ["timer.0_2"],
          "transitions": [
            {
              "default": "q.get_equipped_item_name!='asta_skills' || !q.is_alive"
            },
            {
              "black_cut2": "query.any_animation_finished"
            }
          ],
          "on_entry": [
            "/event entity @s wesl3y:skill5"
          ],
          "on_exit": [
            "/event entity @s wesl3y:asta.black_cut",
            "/scoreboard players set @s wg:cooldown2 25"
          ]
        },
        "black_cut2": {
          "animations": ["timer.0_2"],
          "transitions": [
            {
              "default": "query.any_animation_finished"
            }
          ]
        }
      }
    }
  }
}