Return to specific coordinates in the overworld when leaving a dimension

Started by Deb.deb on

Topic category: Help with Minecraft modding (Java Edition)

Joined Oct 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Return to specific coordinates in the overworld when leaving a dimension
Tue, 10/01/2024 - 00:54 (edited)

I'm trying to make it so an item sends you to a dimension, but saves the overworld coordinates so that when you return to the overworld you're at the same coordinates. How do I do this? This is what I've tried so far

https://imgur.com/hkAPwFM

Edited by Deb.deb on Tue, 10/01/2024 - 00:54
Joined Dec 2014
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Local variables are cleared…
Tue, 10/01/2024 - 00:55

Local variables are cleared when the procedure finishes, so you'd have to use a PLAYER_PERSISTENT or PLAYER_LIFETIME variable from the variable tab in your workspace instead.

Joined Oct 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Thank you!
Tue, 10/01/2024 - 00:56

Thank you!