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

Active 4 years ago
Joined Aug 2014
Points:
742

User statistics:

  • Modifications: 0
  • Forum topics: 4
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 7
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?

Active 2 years ago
Joined Mar 2020
Points:
890

User statistics:

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

make it NOT hostile and attack mod in some hostile tag

Active 2 years ago
Joined Mar 2020
Points:
890

User statistics:

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

and attack somebody who attacked it

Active 2 years ago
Joined Mar 2020
Points:
890

User statistics:

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

these are in the AI

Active 6 months ago
Joined Sep 2023
Points:
136

User statistics:

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

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