{
  "format_version": "1.10.0",
  "animation_controllers": {
    "controller.animation.todoroki": {
      "states": {
        "default": {
          "transitions": [
            { "ice_wall": "q.get_equipped_item_name=='todoroki_skills' && q.property('wesl3y:animes') == 4 && q.property('wesl3y:characters') == 1 && query.scoreboard('wg:skill') == 0 && query.scoreboard('wg:cooldown') == 0 && q.is_using_item" },
            { "jet_burn": "q.get_equipped_item_name=='todoroki_skills' && q.property('wesl3y:animes') == 4 && 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=='todoroki_skills' && q.property('wesl3y:animes') == 4 && 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_5"],
          "transitions": [
            { "default": "q.get_equipped_item_name!='todoroki_skills'" },
            { "attack2": "v.attack_time > 0.0 && q.any_animation_finished" },
            { "attack1_2": "query.any_animation_finished" }
          ],
          "on_entry": [
            "/event entity @s wesl3y:skill1",
            "/execute positioned ^^1^1.25 as @s at @e[c=1,r=1.5,tag=!todoroki,type=!item,type=!xp_orb] run function boku_no_hero/todoroki/hit"
          ]
        },
        "attack1_2": {
          "animations": ["timer.0_1"],
          "transitions": [
            { "attack2": "v.attack_time > 0.0" },
            { "default": "query.any_animation_finished" }
          ],
          "on_entry": [
            "/event entity @s wesl3y:skill0"
          ]
        },
        "attack2": {
          "animations": ["timer.0_5"],
          "transitions": [
            { "default": "q.get_equipped_item_name!='todoroki_skills'" },
            { "ice_spikes": "v.attack_time > 0.0 && query.any_animation_finished" },
            { "attack2_2": "query.any_animation_finished" }
          ],
          "on_entry": [
            "/event entity @s wesl3y:skill2",
            "/execute positioned ^^1^1.25 as @s at @e[c=1,r=1.5,tag=!todoroki,type=!item,type=!xp_orb] run function boku_no_hero/todoroki/hit2"
          ]
        },
        "attack2_2": {
          "animations": ["timer.0_1"],
          "transitions": [
            { "ice_spikes": "v.attack_time > 0.0" },
            { "default": "query.any_animation_finished" }
          ],
          "on_entry": [
            "/event entity @s wesl3y:skill0"
          ]
        },
        "ice_spikes": {
          "animations": ["todoroki.ice_spikes"],
          "transitions": [
            {
              "default": "q.get_equipped_item_name!='todoroki_skills'"
            },
            {
              "default": "query.any_animation_finished"
            }
          ],
          "on_entry": [
            "/event entity @s wesl3y:skill3"
          ]
        },
        "ice_wall": {
          "animations": ["todoroki.ice_wall"],
          "transitions": [
            {
              "default": "q.get_equipped_item_name!='todoroki_skills'"
            },
            {
              "default": "query.any_animation_finished"
            }
          ],
          "on_entry": [
            "/event entity @s wesl3y:skill4"
          ],
          "on_exit": [
            "/scoreboard players set @s wg:cooldown 20",
            "/effect @s slowness 2 4 true"
          ]
        },
        "jet_burn": {
          "animations": ["todoroki.jet_burn"],
          "transitions": [
            {
              "default": "q.get_equipped_item_name!='todoroki_skills'"
            },
            {
              "default": "query.all_animations_finished"
            }
          ],
          "on_entry": [
            "/event entity @s wesl3y:skill5"
          ],
          "on_exit": [
            "/scoreboard players set @s wg:cooldown2 20"
          ]
        }
      }
    }
  }
}