Making vanilla hostile mobs not target the player without commands.

Started by Vanpur on

Topic category: Help with Minecraft modding (Java Edition)

Active 7 months ago
Joined Nov 2024
Points:
52

User statistics:

  • Modifications: 0
  • Forum topics: 2
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 2
Making vanilla hostile mobs not target the player without commands.

Example:
I don't want pillagers to attack me if I have a global variable that is set to true. (DontAttackPlayers) = true.
I can't find a way to do it with procedures.