summon arrow ~ ~1 ~ {damage:0.01d,Tags:["unspellable","p_spit","init","attack","EB","nonlocking"],Silent:1b,CustomPotionEffects:[{Id:19b,Amplifier:0b,Duration:80}]}
data modify entity @e[tag=p_spit,tag=init,limit=1,sort=nearest] Rotation set from entity @s Rotation
data modify entity @e[tag=p_spit,tag=init,limit=1,sort=nearest] Rotation[1] set value 0

execute as @e[tag=p_spit,tag=init,limit=1,sort=nearest] at @s run function attacks:0_generic/launch/forward
tag @e[tag=p_spit,tag=init,limit=1,sort=nearest] remove init

playsound custom.spit hostile @a ~ ~ ~
