{
  "format_version": "1.10.0",
  "animation_controllers": {
    "controller.animation.escanor": {
      "states": {
        "default": {
          "transitions": [
            { "cruel_sun": "q.get_equipped_item_name=='escanor_skills' && q.property('wesl3y:animes') == 7 && q.property('wesl3y:characters') == 1 && query.scoreboard('wg:skill') == 0 && query.scoreboard('wg:cooldown') == 0 && q.is_using_item" },
            { "awakening": "q.get_equipped_item_name=='escanor_skills' && q.property('wesl3y:animes') == 7 && 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=='escanor_skills' && q.property('wesl3y:animes') == 7 && q.property('wesl3y:characters') == 1 && v.attack_time > 0.0" }
          ],
          "on_entry": [
            "/event entity @s wesl3y:skill0",
            "/inputpermission set @s movement enabled",
            "/tag @s remove skill_distance"
          ]
        },
        "attack1": {
          "animations": ["timer.0_4"],
          "transitions": [
            { "default": "q.get_equipped_item_name!='escanor_skills'" },
            { "attack2": "v.attack_time > 0.0 && q.any_animation_finished" },
            { "attack1_2": "query.any_animation_finished" }
          ],
          "on_entry": [
            "/event entity @s wesl3y:skill1"
          ],
          "on_exit": [
            "/execute positioned ~~3~ positioned ^^^2 run function nanatsu_no_taizai/escanor/hit",
            "/execute positioned ~~3~ positioned ^^^2 run execute at @e[c=10,r=4,family=!attack,family=!inanimate,tag=!escanor,type=!item,type=!xp_orb] run particle wesl3y:yamamoto_hit2 ~~1.5~"
          ]
        },
        "attack1_2": {
          "animations": ["timer.0_5"],
          "transitions": [
            { "attack2": "v.attack_time > 0.0" },
            { "default": "query.any_animation_finished" }
          ]
        },
        "attack2": {
          "animations": ["timer.0_4"],
          "transitions": [
            { "default": "q.get_equipped_item_name!='escanor_skills'" },
            { "slash": "v.attack_time > 0.0 && query.any_animation_finished" },
            { "attack2_2": "query.any_animation_finished" }
          ],
          "on_entry": [
            "/event entity @s wesl3y:skill2"
          ],
          "on_exit": [
            "/execute positioned ~~3~ positioned ^^^2 run function nanatsu_no_taizai/escanor/hit",
            "/execute positioned ~~3~ positioned ^^^2 run execute at @e[c=10,r=4,family=!attack,family=!inanimate,tag=!escanor,type=!item,type=!xp_orb] run particle wesl3y:yamamoto_hit ~~1.5~"
          ]
        },
        "attack2_2": {
          "animations": ["timer.0_5"],
          "transitions": [
            { "slash": "v.attack_time > 0.0" },
            { "default": "query.any_animation_finished" }
          ]
        },
        "slash": {
          "animations": ["timer.0_3"],
          "transitions": [
            {
              "default": "q.get_equipped_item_name!='escanor_skills'"
            },
            {
              "slash2": "query.any_animation_finished"
            }
          ],
          "on_entry": [
            "/event entity @s wesl3y:skill3"
          ],
          "on_exit": [
            "/summon wesl3y:escanor_damage ^^0.5^0.25 facing ^^^10000 wesl3y:slash0"
          ]
        },
        "slash2": {
          "animations": ["timer.0_5"],
          "transitions": [
            {
              "default": "query.any_animation_finished"
            }
          ]
        },
        "cruel_sun": {
          "animations": ["timer.0_75"],
          "transitions": [
            {
              "default": "q.get_equipped_item_name!='escanor_skills' || !q.is_alive"
            },
            {
              "cruel_sun2": "query.any_animation_finished"
            }
          ],
          "on_entry": [
            "/event entity @s wesl3y:skill4"
          ],
          "on_exit": [
            "/event entity @s wesl3y:escanor.cruel_sun",
            "/scoreboard players set @s wg:cooldown 30"
          ]
        },
        "cruel_sun2": {
          "animations": ["timer.0_3"],
          "transitions": [
            {
              "default": "query.any_animation_finished"
            }
          ]
        },
        "awakening": {
          "animations": ["timer.0_3"],
          "transitions": [
            {
              "default": "query.any_animation_finished"
            }
          ],
          "on_entry": [
            "/tellraw @s {\"rawtext\":[{\"text\":\"§cNext Version\nPróxima Versão\"}]}"
          ]
        }
      }
    }
  }
}