playsound minecraft:entity.spider_queen.web hostile @a ~ ~1 ~ 1.5

tag @s add raycasting

execute anchored eyes positioned ^ ^ ^ run function spider_queen:raycast

tag @s remove raycasting
scoreboard players reset .distance webcast

