Simple alliance/team system
I am trying to create a system where players can mark other players (and possibly other entities) as friendly to them, allowing them to be targeted by helpful spells/effects and avoid harmful ones. I'm considering doing this with scoreboards, tags, data storage, and/or id-specific macros (as I have a functioning scoreboard id system for players and certain mobs). What is the most efficient way to make this sort of system?