execute rotated ~ 0 positioned ^-2^^9 run damage @e[r=2,type=!item] 30
execute rotated ~ 0 positioned ^-1^^9 run damage @e[r=2,type=!item] 30
execute rotated ~ 0 positioned ^^^9 run damage @e[r=2,type=!item] 30
execute rotated ~ 0 positioned ^1^^9 run damage @e[r=2,type=!item] 30
execute rotated ~ 0 positioned ^2^^9 run damage @e[r=2,type=!item] 30