Entity attack AI

Started by ChromaticAeternus on

Topic category: Feature requests and ideas for MCreator

Active 1 month ago
Joined Oct 2018
Points:
754

User statistics:

  • Modifications: 1
  • Forum topics: 9
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 61
Entity attack AI

I have an idea for the AIs: For the "Attack entities of type [ONLY 1 CHOICE]", if we want our mob to attack every mob, that would be boring and long to make a billion of "Attack entities of type [ONLY 1 CHOICE]", so, instead, why not doing a system of checkmark and select all the mobs we want the entity to attack?

Active 4 years ago
Joined May 2020
Points:
639

User statistics:

  • Modifications: 0
  • Forum topics: 1
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 52
You can actually do…
Tue, 06/09/2020 - 00:39

You can actually do something to shorten the amount of clicks to select the entities to be attacked by choosing those 4 options:

Entity:Player

Entity:PlayerMP

Entity:Monster

Entity:Creature (or mob iirc)

Active 1 month ago
Joined Oct 2018
Points:
754

User statistics:

  • Modifications: 1
  • Forum topics: 9
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 61
Yes, but the problem is that…
Tue, 06/09/2020 - 08:52

Yes, but the problem is that If I put 2 same mobs, they'll fight each others, despite they are the same mob.

Second problem, I made a serie of robots, but If I spawn all of them, they'll fight each others, despite they are teammates.

Active 4 years ago
Joined May 2020
Points:
639

User statistics:

  • Modifications: 0
  • Forum topics: 1
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 52
You can change the code…
Tue, 06/09/2020 - 20:26

You can change the code itself to go around that. Making so that if the mob is the same type as it, it won't attack them. Perhaps a procedure can do the trick as well, on update tick.