this is kinda specific:
I have a medieval style server running 1.19 paperspigot (to allow for cross-play)
I want to have a few different groups of npcs (kingsguard, royal guard, etc). My goal was for a player to be assigned to command each, and would be able to interact with only the NPCs in that group. For example: The commander of the royal guard can change its equipment, placement, follow type, etc (but not certain values like being able to attack the king)