particle smoke ~ ~ ~ 0 0 0 .01 2 force

tp @s ~ ~ ~ facing entity @e[distance=..10,tag=!unspellable,type=!#no_interaction_p,sort=nearest,limit=1] eyes
execute if entity @e[distance=..10,tag=!unspellable,type=!#no_interaction_p,sort=nearest,limit=1] at @s run function items:obj/bee_missile/homing

execute unless block ^ ^ ^.5 #mrcd:player_can_pass unless block ^ ^ ^.5 #mrcd:air_like run function items:obj/bee_missile/hit
execute positioned ~ ~-.7 ~ if entity @e[distance=..1,tag=!unspellable,type=!#no_interaction_p,sort=nearest,limit=1] run function items:obj/bee_missile/hit
execute if entity @s[nbt={ActiveEffects:[{Id:26b,Duration:1}]}] run function items:obj/bee_missile/hit
