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

Started by KykokosPro on

Topic category: Help with Minecraft modding (Java Edition)

Active 1 year ago
Joined Aug 2024
Points:
68

User statistics:

  • Modifications: 0
  • Forum topics: 1
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 1
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.

Active 1 year ago
Joined Jun 2023
Points:
298

User statistics:

  • Modifications: 0
  • Forum topics: 6
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 110
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.

Active 1 year ago
Joined Aug 2024
Points:
68

User statistics:

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

ok thx