Hello, I need help with making a spare system

Started by theamongusfnaf… on

Topic category: Help with Minecraft modding (Java Edition)

Hello, I need help with making a spare system

Hello! I need help on making a spare system (you right click on entity and it stops targeting you) but it just keeps going back to attacking me, any ideas on how to fix it?

Current procedure:

Event trigger v

If: Random 0,1 < 0.7

Do: Set the attack of [event/target entity to no entity 

Play sound

V

As i said

I want the mob to not attack after the  successful spare, but it only stops attacking for just a few seconds, if anyone has a solution, please let me know.