I want to create two custom items. One with an aura that harms every player in the enemy team and one with an aura that heals every player in my team.
My problem here is, that I don't want to name the team in the item. Instead I want the item to detect if a player is a friend or an enemy.
/execute at Itemuser run effect give @a[distance=1..5] minecraft:regeneration 1 1
Can I type something like