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

Started by KykokosPro on

Topic category: Help with modding (Java Edition)

Last seen on 13:26, 12. Aug 2024
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.

Last seen on 20:32, 6. Aug 2024
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.

Last seen on 13:26, 12. Aug 2024
Joined Aug 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
ok thx
Thu, 08/08/2024 - 17:44

ok thx