Started by
Desdinova
on
Topic category: Help with Minecraft modding (Java Edition)
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
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]