    "controller.animation.magic_staff_soul": {
      "states": {
        "default": {
          "Phantoms": [
            {
              "start": "query.get_equipped_item_name=='magic_staff_soul' && query.is_using_item"
            }
          ]
        },
        "start": {
          "Phantoms": [
            {
              "shoot": "!query.is_using_item"
            }
          ]
        },
        "shoot": {
          "Phantoms": [
            {
              "reset_shoot": "!query.is_using_item"
            }
          ],
          "on_entry": [
              "/function soul_magic_unleash",
              
              "/tag @s[scores={mana=4..80},tag=Wither_skull] add Magic_shoot",
              "/tag @s[scores={mana=8..80},tag=Mist] add Magic_shoot",
              "/tag @s[scores={mana=12..80},tag=Phantom] add Magic_shoot",
              "/tag @s[scores={mana=8..80},tag=Undead_legion] add Magic_shoot",
              "/tag @s[scores={mana=16..80},tag=Ectoplasm] add Magic_shoot",
              "/tag @s[scores={mana=12..80},tag=Spectre] add Magic_shoot",
              "/tag @s[scores={mana=20..80},tag=Bone_cage] add Magic_shoot",
              "/tag @s[scores={mana=8..80},tag=Spirit] add Magic_shoot",
              "/tag @s[scores={mana=24..80},tag=Vengeful_ghost] add Magic_shoot",
              "/tag @s[scores={mana=28..80},tag=Soul_eater] add Magic_shoot",
              
              "/scoreboard players set @s Magicpower 0",
              "/scoreboard players set @s Magicdelay 0",
              "/ride @s[tag=Phantom,tag=Magic_shoot] summon_ride ed:Phantom_spell",
              "/execute @s[tag=Magic_shoot,tag=Spirit] ~~~ particle ed:Spirit_p ~~~",
              "/execute @s[tag=Magic_shoot,tag=Wither_skull] ~~~ playsound random.bow @s ~~~",
              "/execute @s[tag=Magic_shoot,tag=Undead_legion] ~~~ playsound beacon.deactivate @s ~~~",
              "/execute @s[tag=Magic_shoot,tag=Ectoplasm] ~~~ playsound lightning.Ectoplasm @s ~~~",
              "/execute @s[tag=Magic_shoot,tag=Spectre] ~~~ playsound ambient.weather.lightning.impact @s ~~~ 100 2",
              "/execute @s[tag=Magic_shoot,tag=Spirit] ~~~ playsound ambient.weather.thunder @s ~~~",
              "/execute @s[tag=Magic_shoot,tag=Vengeful_ghost] ~~~ playsound mob.evocation_illager.ambient @s ~~~",
              "/execute @s[tag=Magic_shoot,tag=Soul_eater] ~~~ playsound mob.enderdragon.growl @s ~~~",
              "/title @s[tag=Magic_shoot,tag=Wither_skull] actionbar Wither skull!",
              "/title @s[tag=Magic_shoot,tag=Mist] actionbar Mist!",
              "/title @s[tag=Magic_shoot,tag=Phantom] actionbar Phantom!",
              "/title @s[tag=Magic_shoot,tag=Undead_legion] actionbar Undead legion!",
              "/title @s[tag=Magic_shoot,tag=Ectoplasm] actionbar Ectoplasm!",
              "/title @s[tag=Magic_shoot,tag=Spectre] actionbar Spectre!",
              "/title @s[tag=Magic_shoot,tag=Bone_cage] actionbar Bone cage!",
              "/title @s[tag=Magic_shoot,tag=Vengeful_ghost] actionbar Vengeful ghost!",
              "/title @s[tag=Magic_shoot,tag=Spirit] actionbar Spirit!",
              "/title @s[tag=Magic_shoot,tag=Soul_eater] actionbar Soul eater!",
              
              "/scoreboard players add @s[tag=Wither_skull,scores={mana=4..80}] mana -4",
              "/scoreboard players add @s[tag=Mist,scores={mana=8..80}] mana -8",
              "/scoreboard players add @s[tag=Phantom,scores={mana=12..80}] mana -12",
              "/scoreboard players add @s[tag=Undead_legion,scores={mana=8..80}] mana -8",
              "/scoreboard players add @s[tag=Ectoplasm,scores={mana=16..80}] mana -16",
              "/scoreboard players add @s[tag=Spectre,scores={mana=12..80}] mana -12",
              "/scoreboard players add @s[tag=Bone_cage,scores={mana=20..80}] mana -20",
              "/scoreboard players add @s[tag=Spirit,scores={mana=8..80}] mana -8",
              "/scoreboard players add @s[tag=Vengeful_ghost,scores={mana=24..80}] mana -24",
              "/scoreboard players add @s[tag=Soul_eater,scores={mana=28..80}] mana -28",
              
              "/title @s[tag=Wither_skull,tag=!Magic_shoot] actionbar §cNot enough mana",
              "/title @s[tag=Mist,tag=!Magic_shoot] actionbar §cNot enough mana",
              "/title @s[tag=Phantom,tag=!Magic_shoot] actionbar §cNot enough mana",
              "/title @s[tag=Undead_legion,tag=!Magic_shoot] actionbar §cNot enough mana",
              "/title @s[tag=Ectoplasm,tag=!Magic_shoot] actionbar §cNot enough mana",
              "/title @s[tag=Spectre,tag=!Magic_shoot] actionbar §cNot enough mana",
              "/title @s[tag=Bone_cage,tag=!Magic_shoot] actionbar §cNot enough mana",
              "/title @s[tag=Spirit,tag=!Magic_shoot] actionbar §cNot enough mana",
              "/title @s[tag=Vengeful_ghost,tag=!Magic_shoot] actionbar §cNot enough mana",
              "/title @s[tag=Soul_eater,tag=!Magic_shoot] actionbar §cNot enough mana"
          ]
        },
        "reset_shoot": {
          "Phantoms": [
            {
              "default": "(1.0)"
            }
          ],
          "on_entry": [
              "/tag @s remove Magic_shoot",
            "/tag @s remove Wither_skull",
            "/tag @s remove Undead_legion",
            "/tag @s remove Mist",
            "/tag @s remove Phantom",
            "/tag @s remove Ectoplasm",
            "/tag @s remove Spectre",
            "/tag @s remove Vengeful_ghost",
            "/tag @s remove Spirit",
            "/tag @s remove Bone_cage",
            "/tag @s remove Soul_eater"
          ]
        }
      }
    }