Do not attack mob of the same type

Started by woodcreatures on Tue, 04/27/2021 - 10:42

Topic category: Feature requests and ideas for MCreator

Last seen on 05:05, 5. Jul 2022
Joined Mar 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
Do not attack mob of the same type
Tue, 04/27/2021 - 17:21 (edited)

Hi,

why don't you add a feature who prevents model "A" not to attack same model "A" ?

Otherwise it's a pain to set correct AI for mobs to attack which enemies and which not

If you use AI for attack for example EntityMob or EntityMonster you risk that model "A" attacks itself

 

 

 

thank you

Edited by woodcreatures on Tue, 04/27/2021 - 17:21
Last seen on 23:34, 16. May 2022
Joined Apr 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
You can do that by removing…
Tue, 04/27/2021 - 11:05

You can do that by removing the 'fight attacker mobs back' under Ai and goals

Last seen on 05:05, 5. Jul 2022
Joined Mar 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
Well but in this case even…
Tue, 04/27/2021 - 14:38

Well but in this case even if other mobs attacke my mob he will not react

I mean i want for him to attack back to other mobs but not to mobs of the same type

 

I belive if I remove "fight attacker mobs back' any mobs attacking him, he will not reply

 

Am I wrong ?

Last seen on 05:05, 5. Jul 2022
Joined Mar 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
Please look at this, I…
Tue, 04/27/2021 - 17:15

Please look at this, I really need help.

I want for mob called heart_mirror to attack all ENTITYCREATURE except himself. Where am I wrong ?

 

 

Last seen on 05:05, 5. Jul 2022
Joined Mar 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
anyone has an idea here…
Wed, 04/28/2021 - 19:01

anyone has an idea here please ?? I'm really trying all possible conditions but can't solve it

 

You can make additional…
Sat, 06/05/2021 - 15:49

You can make additional procedure with global trigger "when entity attacked" and use conditions such as "if source_entity type = N" AND "if entity type = N", then you cancel the event. Of course "N" is your entity.

Didn't test that in precisely that way, but similar procedure worked in my mod. I hope this one works too :)