[SOLVED] How can I make a procedure with and "if then if not" block that check every tick make the "then" only once?

Started by Izan on

Topic category: Help with Minecraft modding (Java Edition)

Joined May 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
[SOLVED] How can I make a procedure with and "if then if not" block that check every tick make the "then" only once?
Mon, 07/04/2022 - 11:20 (edited)

I have a procedure and the event is check every tick of a loaded entity. It have a "If then if not" block. The "then" gives a potion effect but I want that the event only gives the potion effect just once. I need to have the "check every tick of a loaded entity" because if I dont have it the "if" dont work

Solution: In Then I put a "If then" block with a "no" and "have effect" block in the "if" and the "give potion effect" block in then.

Edited by Izan on Mon, 07/04/2022 - 11:20
Joined Apr 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
You can detect if the entity…
Mon, 07/04/2022 - 11:16

You can detect if the entity has the potion effect applied to them, if they don't then apply it.