Make a mob attack everything other than its own species?

Started by DoctorHyena on

Topic category: Help with modding (Java Edition)

Last seen on 19:42, 3. Dec 2023
Joined Feb 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Make a mob attack everything other than its own species?

Pretty self-explanatory but basically I want to know what condition I'd set up to make it to where my hyena attacks everything except for other hyenas.

Last seen on 00:38, 27. Jul 2024
Joined Feb 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Maybe something like If:not…
Wed, 02/16/2022 - 05:20

Maybe something like If:not hyena then return true

Last seen on 19:42, 3. Dec 2023
Joined Feb 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Can you send a screenshot…
Wed, 02/16/2022 - 05:36

Can you send a screenshot example?

Last seen on 08:07, 22. Sep 2024
Joined Mar 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
You can't do this with…
Wed, 02/16/2022 - 11:12

You can't do this with Mcreator in a fast way (without coding)

You have 2 solutions only:

 

1) you select in AI every single line for mob he must attack

2) You use trigger entity attacked and cancel trigger but this way your hyaenas will stay one near the other looking at each other

 

Last seen on 19:42, 3. Dec 2023
Joined Feb 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Well, I wouldn't mind using…
Wed, 02/16/2022 - 17:24

Well, I wouldn't mind using a code snippet if anyone has time to send one. That'd probably be the best way to do it.