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

Started by XSpeedRate on

Topic category: Help with modding (Java Edition)

Last seen on 16:03, 3. Jan 2024
Joined Oct 2018
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
How to make a mob become aggressive when you look at them?

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 01:09, 29. Aug 2022
Joined Mar 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • 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 16:03, 3. Jan 2024
Joined Oct 2018
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • 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 01:09, 29. Aug 2022
Joined Mar 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • 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 16:03, 3. Jan 2024
Joined Oct 2018
Points:

User statistics:

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

Have you found anything?

Last seen on 01:09, 29. Aug 2022
Joined Mar 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • 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 

Last seen on 14:30, 28. Mar 2024
Joined Jul 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Well, you could make it to…
Thu, 08/12/2021 - 02:06

Well, you could make it to where there's an entity on tick update. So if the player is looking at the passive mob, it'll kill itself and spawn an aggresive version of the mob. And make sure only the passive version naturally spawns.  Maybe you could try this.

Last seen on 20:01, 24. Mar 2024
Joined Aug 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
RandomDudeGamer can you show…
Fri, 08/11/2023 - 00:42

RandomDudeGamer can you show me the procedure?

Last seen on 00:36, 2. Jan 2024
Joined Oct 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I don't think that this is…
Fri, 10/13/2023 - 22:01

I don't think that this is possible in the newest version of MCreator without the use of actual coding.