Disable Mob Aggression

Started by Falkegras on

Topic category: Help with Minecraft modding (Java Edition)

Joined Oct 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Disable Mob Aggression

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