Making all hostile entities ignore plyer

Started by Display on

Topic category: Help with Minecraft modding (Java Edition)

Joined Jan 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Making all hostile entities ignore plyer

I'm currently working on the mod that adds the Freddy mask from Five Nights at Freddy's 2 into the game. How do I add a procedure to make every hostile entity, even vanilla entities, ignore the player when the item is held?

Joined May 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
You could put a procedure in…
Fri, 03/27/2026 - 10:37

You could put a procedure in the "On Item in hand tick" slot that loops through nearby entities and removes their attack target. I can't remember if there is a block that does that, so let me know if this is possible.