How to make mobs not attack player if player have certain potion effect

Started by Gux on

Topic category: Help with Minecraft modding (Java Edition)

Joined Mar 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
How to make mobs not attack player if player have certain potion effect

Hello, if I have a potion effect on me I want zombies and skeletons not to attack me, how can I do that?

Joined Apr 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I think you should use AI…
Sat, 08/28/2021 - 10:07

I think you should use AI conditions

Joined Aug 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
in they AI attack to player…
Thu, 09/09/2021 - 14:32

in they AI attack to player procedure block make a condition: if player is not affected by potion, then return true. else return false