turn a hostile mob into a passive or neutral one

Started by Purple19842 on Sat, 02/04/2023 - 20:54

Topic category: Advanced modding

Last seen on 02:42, 6. Mar 2023
Joined Feb 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
turn a hostile mob into a passive or neutral one
Sat, 02/04/2023 - 20:54

I am making a mask that makes illagers not attack you, right now i have:

 

When entity sets attack target,( if source entity is Illager,( if player has item in slot()))

 

I need a way to change the illager into either a neutral of passive mob.

There may be a way by setting nbt tags, but I am not sure.

 

Any help would be greatly appreciated