Stop a procedure upon returning to the overworld from another dimension

Started by Desdinova on

Topic category: Help with modding (Java Edition)

Last seen on 21:18, 28. Sep 2024
Joined Jul 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Stop a procedure upon returning to the overworld from another dimension

I have a procedure that activates upon entering another dimension that lasts for 5 minutes, & when those 5 minutes are up, it take the player back to the overworld, but I've found an issue where if the player dies in this dimension & returns to the overworld, this command is still active & sends them back to the overworld again, which removes their inventory & prevents them from picking up items until they exit the game, is there any way to stop this command if they return to the overworld before the timer ends? https://drive.google.com/file/d/1T0sDOp9jfkPP--YfrTbmFri-ezn1j1tQ/view?usp=sharing, heres a photo of the procedure