Mobs that switch between targets
Would it be possible to make it so that custom mobs (example zombies) would target something far across the map, but attack close by players? And then go back to the behavior of targeting that main target.
Basically I'm trying to create this sorta tower defense/pve minigame where zombies (or other mobs) would try to take down a villager but they would also attack players when triggered.