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)

Active 2 years ago
Joined Mar 2021
Points:
595

User statistics:

  • Modifications: 0
  • Forum topics: 5
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 4
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?

Active 5 months ago
Joined Apr 2019
Points:
728

User statistics:

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

I think you should use AI conditions

Active 2 years ago
Joined Aug 2021
Points:
559

User statistics:

  • Modifications: 0
  • Forum topics: 3
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 29
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