{
  "format_version": "1.10.0",
  "animation_controllers": {
    "controller.animation.card.plummet.ct": {
      "initial_state": "cooldown",
      "states": {
        "cooldown": {
          "transitions": [
            {
              "armed": "q.scoreboard('plummet_cd') == 0"
            }
            ]
        },
        "armed": {
          "transitions": [
            {
              "cooldown": "q.scoreboard('plummet_cd') > 0"
            },
            {
              "attack": "q.equipped_item_any_tag('slot.weapon.mainhand','card:plummet') && q.scoreboard('stun') == 0 && q.is_using_item && !q.is_sneaking && !q.is_jumping && q.scoreboard('plummet_cd') == 0 && q.scoreboard('has_skill') == 0 && q.scoreboard('headrot') > -5"
            }
            ],
          "on_entry": [
            "/inputpermission set @s[scores={stun=0}] lateral_movement enabled"
            ]
        },
        "attack": {
          "transitions": [
            {
              "armed": "q.any_animation_finished && q.scoreboard('grab_sensor') == 0 || q.scoreboard('stun') > 0"
            }
            ],
            "on_entry": [
              "/tp @s @s",
              "@s movement:stop",
              "/scoreboard players set @s has_skill 1",
              "/tag @s add hasSkill",
              "/playanimation @s animation.evocation_book.charged_attack",
              "/tp @s @s"
              ],
            "on_exit": [
              "/tag @s remove projIframes",
              "/tag @s remove hasSkill",
              "@s movement:walk",
              "/scoreboard players set @s has_skill 0",
              "/scoreboard players set @s[tag=trait:shortcd] plummet_cd 300",
              "/scoreboard players set @s[tag=!trait:shortcd,tag=!trait:longcd] plummet_cd 400",
              "/scoreboard players set @s[tag=trait:longcd] plummet_cd 500"
              
              ],
             "animations": [
               "card.plummet"
               ]
        }
      }
    }
  }
}