execute as @e[type=minecraft:arrow,nbt={weapon:{components:{"minecraft:enchantments":{levels:{"kiwi:skill_arrow_rain":1}}}}},tag=!arrow_rain_proc] if entity @n[distance=..4,type=!shulker_bullet,type=!player,type=!#impact_projectiles,type=!item,type=!#boat,type=!item_frame,type=!glow_item_frame,type=!painting,type=!experience_orb] run function kiwi:enchantment_function/arrow_rain_tp