How can I make a working aggressive mob?

Started by icantlogin on

Topic category: Help with Minecraft modding (Java Edition)

Active 3 years ago
Joined Oct 2021
Points:
521

User statistics:

  • Modifications: 0
  • Forum topics: 2
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 2
How can I make a working aggressive mob?

I simply want an aggressive mob that attacks friendly creatures. But when I use "attack entities of type 'Creature entity" it also attacks its own species even if it's a mob. How can I fix this so it attacks every friendly creature except itself?

Active 5 months ago
Joined Mar 2021
Points:
1015

User statistics:

  • Modifications: 3
  • Forum topics: 37
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 451
You can't unless you select…
Thu, 10/28/2021 - 05:55

You can't unless you select in AI each single creature he must attack and not only "creature"

That's the best solution otherwise you can use trigger entity attacked and if same type then cancel trigger but in this case they will stand still looking at each other

Active 3 years ago
Joined Oct 2021
Points:
521

User statistics:

  • Modifications: 0
  • Forum topics: 2
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 2
I used animal entities…
Thu, 10/28/2021 - 08:10

I used animal entities instead and now it works actually. 

Active 5 months ago
Joined Mar 2021
Points:
1015

User statistics:

  • Modifications: 3
  • Forum topics: 37
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 451
Now it attacks only animals…
Thu, 10/28/2021 - 10:06

Now it attacks only animals as per what you say....so if you have a pacific creature which is not animal it will not attack it