{
  "format_version": "1.10.0",
  "animation_controllers": {
    "controller.animation.jinwoo": {
      "states": {
        "default": {
          "transitions": [
            { "stealth": "q.get_equipped_item_name=='jinwoo_skills' && q.property('wesl3y:animes') == 10 && q.property('wesl3y:characters') == 1 && query.scoreboard('wg:skill') == 0 && query.scoreboard('wg:cooldown') == 0 && q.is_using_item" },
            { "bloodlust": "q.get_equipped_item_name=='jinwoo_skills' && q.property('wesl3y:animes') == 10 && q.property('wesl3y:characters') == 1 && query.scoreboard('wg:skill') == 1 && query.scoreboard('wg:cooldown2') == 0 && q.is_using_item" },
            { "igris": "q.get_equipped_item_name=='jinwoo_skills' && q.property('wesl3y:animes') == 10 && q.property('wesl3y:characters') == 1 && query.scoreboard('wg:skill') == 2 && query.scoreboard('wg:cooldown3') == 0 && q.is_using_item" },
            { "attack1": "q.get_equipped_item_name=='jinwoo_skills' && q.property('wesl3y:animes') == 10 && q.property('wesl3y:characters') == 1 && v.attack_time > 0.0" }
          ],
          "on_entry": [
            "/inputpermission set @s movement enabled",
            "/tag @s remove skill_distance"
          ]
        },
        "attack1": {
          "animations": ["timer.0_3"],
          "transitions": [
            { "cancel": "q.get_equipped_item_name!='jinwoo_skills'" },
            { "attack2": "v.attack_time > 0.0 && q.any_animation_finished" },
            { "attack1_2": "query.any_animation_finished" }
          ],
          "on_entry": [
            "/event entity @s wesl3y:skill1"
          ]
        },
        "attack1_2": {
          "animations": ["timer.0_1"],
          "transitions": [
            { "attack2": "v.attack_time > 0.0" },
            { "cancel": "query.any_animation_finished" }
          ]
        },
        "attack2": {
          "animations": ["timer.0_3"],
          "transitions": [
            { "cancel": "q.get_equipped_item_name!='jinwoo_skills'" },
            { "slash": "v.attack_time > 0.0 && query.any_animation_finished" },
            { "attack2_2": "query.any_animation_finished" }
          ],
          "on_entry": [
            "/event entity @s wesl3y:skill2"
          ]
        },
        "attack2_2": {
          "animations": ["timer.0_1"],
          "transitions": [
            { "slash": "v.attack_time > 0.0" },
            { "cancel": "query.any_animation_finished" }
          ]
        },
        "slash": {
          "animations": ["timer.0_3"],
          "transitions": [
            {
              "cancel": "q.get_equipped_item_name!='jinwoo_skills'"
            },
            {
              "super_slash2": "query.any_animation_finished"
            }
          ],
          "on_entry": [
            "/event entity @s wesl3y:skill3",
            "/execute anchored eyes run summon wesl3y:jinwoo_damage ^^^1 ~~ wesl3y:slash"
          ]
        },
        "super_slash2": {
          "animations": ["timer.0_3"],
          "transitions": [
            {
              "cancel": "query.any_animation_finished"
            }
          ]
        },
        "stealth": {
          "animations": ["timer.0_5"],
          "transitions": [
            {
              "default": "query.any_animation_finished && !q.is_using_item"
            }
          ],
          "on_entry": [
            "/tellraw @s[scores={wg:skill_loop2=1..}] {\"rawtext\":[{\"text\":\"§e[Error] Bloodlust used\"}]}",
            "/scoreboard players set @s[scores={wg:skill_loop2=..1}] wg:cutscene 64",
            "/tag @s[scores={wg:skill_loop2=..1}] add jinwoo_stealthCt"
          ]
        },
        "bloodlust": {
          "animations": ["timer.0_5"],
          "transitions": [
            {
              "default": "query.any_animation_finished && !q.is_using_item"
            }
          ],
          "on_entry": [
            "/tellraw @s[scores={wg:skill_loop=1..}] {\"rawtext\":[{\"text\":\"§e[Error] Stealth used\"}]}",
            "/scoreboard players set @s[scores={wg:skill_loop=..1}] wg:cutscene 84",
            "/tag @s[scores={wg:skill_loop=..1}] add jinwoo_bloodCt"
          ]
        },
        "igris": {
          "animations": ["timer.0_5"],
          "transitions": [
            {
              "default": "query.any_animation_finished && !q.is_using_item"
            }
          ],
          "on_entry": [
            "/scoreboard players set @s wg:cutscene 104",
            "/tag @s add jinwoo_igrisCt"
          ]
        },
        "cancel": {
          "transitions": [
            {
              "default": "(1.0)"
            }
          ],
          "on_entry": [
            "/event entity @s wesl3y:skill0"
          ]
        }
      }
    }
  }
}