Stop procedure when block is broken

Started by Skart on

Topic category: Advanced modding

Active 1 month ago
Joined Mar 2020
Points:
717

User statistics:

  • Modifications: 3
  • Forum topics: 14
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 12
Stop procedure when block is broken

I'm making a procedure that starts when the player places a block, when he does, it spawns particles and then destroys the block. But I have a problem: If you break the block before the procedure does it, the particles keep spawning. I'm trying to make the procedure constantly check if the block has changed and if it happens then make the procedure stop, but I don't know how to do it. There's certainly other ways to do this but I'm unable to figure them out, please help

Active 1 year ago
Joined Feb 2022
Points:
524

User statistics:

  • Modifications: 0
  • Forum topics: 24
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 23
just make the block…
Wed, 07/05/2023 - 02:37

just make the block unbreakable for the duration of the procedure

Active 1 month ago
Joined Mar 2020
Points:
717

User statistics:

  • Modifications: 3
  • Forum topics: 14
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 12
I could do that, but I want…
Wed, 07/05/2023 - 10:57

I could do that, but I want the player to be able to break the block