

execute at @s[scores={AutoAttackTimer=1..25}] run particle dust 0.2 0 1 1 ~ ~ ~ 0.2 0.5 0.2 1 5 force
execute at @s[scores={AutoAttackTimer=25..40}] run particle dust 0.33 0 0.8 1 ~ ~ ~ 0.2 0.5 0.2 1 5 force
execute at @s[scores={AutoAttackTimer=40..55}] run particle dust 0.46 0 0.6 1 ~ ~ ~ 0.2 0.5 0.2 1 5 force
execute at @s[scores={AutoAttackTimer=55..70}] run particle dust 0.59 0 0.4 1 ~ ~ ~ 0.2 0.5 0.2 1 5 force
execute at @s[scores={AutoAttackTimer=75..90}] run particle dust 0.72 0 0.2 1 ~ ~ ~ 0.2 0.5 0.2 1 5 force
execute at @s[scores={AutoAttackTimer=90..145}] run particle dust 1 0 0 1 ~ ~ ~ 0.2 0.5 0.2 1 5 force
execute at @s[scores={AutoAttackTimer=1..144}] run execute as @e[type=armor_stand,tag=AutoAttackBow,sort=nearest,limit=1] run tp @s ~ ~ ~ facing entity @p[tag=CadeyrnFightTag,gamemode=!spectator] eyes
execute at @s[scores={AutoAttackTimer=110}] run playsound minecraft:item.crossbow.loading_middle hostile @a[distance=..100] ~ ~ ~ 10 0.6 0.5
execute at @s[scores={AutoAttackTimer=145}] positioned ~ ~ ~ run summon arrow ~ ~ ~ {NoGravity:1,Tags:["LaunchMe"],Color:231574,CustomPotionEffects:[{Id:2b,Amplifier:1b,Duration:100},{Id:19b,Amplifier:5b,Duration:20}]}
execute at @s[scores={AutoAttackTimer=145}] run execute as @e[type=arrow,tag=LaunchMe,tag=!GotLaunched] run function zzzzdonotuse:cadeyrn/attacks/autoattack/launcharrow
execute at @s[scores={AutoAttackTimer=145}] positioned ~ ~1 ~ run kill @e[type=armor_stand,tag=AutoAttackBow,sort=nearest,limit=1]
execute at @s[scores={AutoAttackTimer=145}] run kill @s