raycasting issues

i am trying to make a slash attack for my datapack. I want it to have a size of 1x0.1x0.1 here is my code, any idea why it is not working? execute as @e[tag=!raycasting,type=!#minelite:not_mob,dx=1] positioned ~-0.5 ~-0.99 ~-0.99 if entity @s[dx=-1] positioned ~0.5 ~0.99 ~0.99 run function minelite:wind/collide
Continue to help post