Disable Mob Aggression

Started by Falkegras on Sat, 05/28/2022 - 15:36

Topic category: Help with modding (Java Edition)

Last seen on 07:38, 10. Aug 2022
Joined Oct 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
Disable Mob Aggression
Sat, 05/28/2022 - 15:36

Is it possible to turn off the aggression of mobs against the player, for example, if the invisibility effect hangs on him, so that the mobs would not attack him.
My problem is that I'm not good at Java.
And what I'm trying to do is probably not possible to do with the GUI, I was hoping to disable the global trigger, but that particular trigger cannot be disabled. Therefore, I would like to know if this is possible with the code, and if so, how?
I thank you in advance for your help and I apologize for my bad English