I was wondering if anyone knows a way to make hostile mobs passive to certain mobs and others no. For example I want to make an area for players to walk into and have pillagers and villagers roaming around but have the pillagers attack the player if they see them same with iron golems, passive to the pillagers but hostile to the player. I've tried using Teams but the pillagers keep pentakilling the villagers. Any ideas?
I recently saw a thread where it was claimed that giving the villagers an "invulnerable" flag/tag (?) would keep zombies from even attacking them, if so it might work for pillagers as well.
Yeah it stops them from attacking them but if i make the pillagers invulnerable so the golem wont kill them the player wont be able to kill them either and will get destroyed.
I was wondering if anyone knows a way to make hostile mobs passive to certain mobs and others no. For example I want to make an area for players to walk into and have pillagers and villagers roaming around but have the pillagers attack the player if they see them same with iron golems, passive to the pillagers but hostile to the player. I've tried using Teams but the pillagers keep pentakilling the villagers. Any ideas?
I recently saw a thread where it was claimed that giving the villagers an "invulnerable" flag/tag (?) would keep zombies from even attacking them, if so it might work for pillagers as well.
Just testing.
Yeah it stops them from attacking them but if i make the pillagers invulnerable so the golem wont kill them the player wont be able to kill them either and will get destroyed.