Stop procedure when block is broken

Started by Skart2000 on

Topic category: Advanced modding

Joined Mar 2020
Points:

User statistics:

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

Joined Feb 2022
Points:

User statistics:

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

just make the block unbreakable for the duration of the procedure

Joined Mar 2020
Points:

User statistics:

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