turn a hostile mob into a passive or neutral one

Started by Purple19842 on

Topic category: Advanced modding

Joined Feb 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
turn a hostile mob into a passive or neutral one

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 

Joined Oct 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
https://mcreator.net/comment…
Tue, 02/21/2023 - 10:59

https://mcreator.net/comment/227536

"I do beleive, putting something like; 

check if there is a team called "mobc"

if not create one

under the whenplayerjoinsworld trigger then inside of that C Mob's Whenentityspawned trigger add /join blah blah team. would be enough.

 

You can add a player to the team while the item is in players hand and remove it when player doesnt holds it. Or, after the player eats a "certain thing/food" he joins that team permanently and becomes friendly with that mob.

The rest is up to your creativity."

 

This was my answer on the thread, but basically you are playing with the team command.

Joined Feb 2018
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I'm currently making a…
Sun, 03/19/2023 - 09:53

I'm currently making a Plugin that adds new Procedures and new Global Triggers.

One of the Global Triggers I wanna add is a Global Trigger similar to "Entity set its Attack target" but this Global Trigger will be called before the mentioned before Global Trigger.

You can also change its Target and also canceling it toward a specific Entity Type.

I hope you can wait for the Plugin :)