Stop a procedure upon returning to the overworld from another dimension

Started by Desdinova on

Topic category: Help with Minecraft modding (Java Edition)

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

Joined Jul 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
At the end of the 5 minutes…
Tue, 10/01/2024 - 12:35

At the end of the 5 minutes make an if statement to check what dimension the player is in:

If [id of dimension] = [customdimension]

    switch dimension of entity to [overworld]