How to make a mob become aggressive when you look at them?

Started by XSpeedRate on Thu, 10/15/2020 - 13:57

Topic category: Help with modding (Java Edition)

Last seen on 15:00, 23. Nov 2020
Joined Oct 2018
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
How to make a mob become aggressive when you look at them?
Thu, 10/15/2020 - 13:57

I want to make it so that when you look at the mob's face or body they become aggressive, how can I make this happen?

Last seen on 19:52, 28. Nov 2020
Joined Mar 2020
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
In the AI builder, if you…
Thu, 10/15/2020 - 15:21

In the AI builder, if you choose enderman as base AI, it will become aggressive if you look at its face. It will also teleport, attack endermites, and pick up blocks. 

Last seen on 15:00, 23. Nov 2020
Joined Oct 2018
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
But I don't want it…
Fri, 10/16/2020 - 15:04

But I don't want it teleporting or picking up blocks, is there a way to disable those traits?

Last seen on 19:52, 28. Nov 2020
Joined Mar 2020
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
It would require some coding…
Fri, 10/16/2020 - 15:24

It would require some coding. I will, try and do some research to see how this could be done

Last seen on 15:00, 23. Nov 2020
Joined Oct 2018
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
Have you found anything?
Tue, 10/27/2020 - 11:54

Have you found anything?

Last seen on 19:52, 28. Nov 2020
Joined Mar 2020
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
Unfortunately, no. The best…
Tue, 10/27/2020 - 13:31

Unfortunately, no. The best you can do is have it constantly run a command that detects if the player is looking at its eyes and if they are give it an effect and make the mob only attack entities with that effect. I am not very good with those commands, however, and am probably not able to help you with the command