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 Minecraft modding (Java Edition)

Active 1 year ago
Joined Jan 2024
Points:
131

User statistics:

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

Active 14 hours ago
Joined Nov 2019
Points:
883

User statistics:

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