how to stop a procedure in the middle of an action?

Started by KykokosPro on

Topic category: Help with Minecraft modding (Java Edition)

Joined Aug 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
how to stop a procedure in the middle of an action?

I have a procedure that triggers a countdown and then a bomb explosion. But I don't know how to make the countdown stop (and the bomb explosion) when I "disarm" the bomb.

Joined Jun 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Use a timer variable that is…
Thu, 08/01/2024 - 23:56

Use a timer variable that is global. Make it so that when it hits 0 it will explode the bomb, but when you diffuse it set it to -1. if it is greater than 0 each tick it will decrease by one.