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

Last seen on 21:36, 22. Feb 2021
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?

Last seen on 06:33, 1. May 2023
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

Last seen on 06:33, 1. May 2023
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

Last seen on 06:33, 1. May 2023
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

Last seen on 20:01, 8. Dec 2023
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.