How do I make my custom mob attack all hostile mobs but to not attack it's own kind?

Started by TheHappyPig on

Topic category: Help with MCreator software

Joined Aug 2014
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
How do I make my custom mob attack all hostile mobs but to not attack it's own kind?

I want to make a guard mob, that attacks hostile mobs (and retaliate if other mobs/players hit it) but to not attack it's own kind, and for it to not despawn on peaceful so how do i do it?

Joined Mar 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
make it NOT hostile and…
Mon, 02/08/2021 - 12:38

make it NOT hostile and attack mod in some hostile tag

Joined Mar 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
and attack somebody who…
Mon, 02/08/2021 - 12:38

and attack somebody who attacked it

Joined Mar 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
these are in the AI
Mon, 02/08/2021 - 12:38

these are in the AI

Joined Sep 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Was having this same issue…
Mon, 10/02/2023 - 01:22

Was having this same issue but this has worked for me so far.