Started by
Purple19842
on
Topic category: Advanced modding
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
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.
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 :)