Started by
Purple19842
on
Topic category: Help with Minecraft modding (Java Edition)
What is the best Event trigger for this.
It is for a mask that makes illagers not attack you, but whenever i run it, it freezes my game.
My guess is that is it trying to run a new instance of the procedure every tick update instead of running it once and then running it again after it is done https://pasteboard.co/y3T5DlTsUP6t.png
the command that gets cut off is : /team join Illager_mask_functionality @e[type=minecraft:pillager]
Edited by Purple19842 on Sat, 02/11/2023 - 19:24
Think using "if - do" is better.
Also, you could check for "entity sets its attack target" and if the has the mask it cancels the global event.
Have not tried it but it shoudl work.