particle flash ~ ~ ~
particle minecraft:end_rod ~ ~ ~ 0 0 0 2 100

effect give @a[distance=..40] minecraft:blindness 1 0 true

playsound minecraft:entity.warden.sonic_boom master @a[distance=..40] ~ ~ ~ 0.15 0 0.05
kill @s