Return to specific coordinates in the overworld when leaving a dimension

Started by dillonjonesy on

Topic category: Help with modding (Java Edition)

Last seen on 01:01, 1. Oct 2024
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 dillonjonesy on Tue, 10/01/2024 - 00:54
Last seen on 01:14, 1. Oct 2024
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.

Last seen on 00:56, 1. Oct 2024
Joined Oct 2024
Points:

User statistics:

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

Thank you!