How to make sure that the vanilla mob does not attack the player when he puts on an item

Started by BadFrog on

Topic category: Help with modding (Java Edition)

Last seen on 23:15, 23. Jan 2024
Joined Jan 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
How to make sure that the vanilla mob does not attack the player when he puts on an item

I can't figure out how to make the procedure so that zombies can't attack the player when he wearing helmet, help please! 

Last seen on 02:39, 27. Jul 2024
Joined Nov 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
on entity tick, if zombie is…
Wed, 01/24/2024 - 04:48

on entity tick, if zombie is targeting a player that has the helmet on, then set attack target to null