What is the best event trigger

Started by Purple19842 on

Topic category: Help with modding (Java Edition)

Last seen on 05:14, 7. Jul 2023
Joined Feb 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
What is the best event trigger
Sat, 02/11/2023 - 19:24 (edited)

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
Last seen on 18:54, 26. Apr 2024
Joined Jan 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Think using "if - do" is…
Sat, 02/11/2023 - 20:53

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.