i'm making this origins type datapack and one of the origins is a necromancer, it's a support class and i wanted to add an attack, so i made it able to summon undead mobs (skeletons, zombies, phantoms and all the variants depending on the enviroment), but until now i was only able to make them attack players, or be completely passive if the place they are on has a celing.
thanks for the help