I need help with the teleportation between dimensions

Started by aBriocheee on

Topic category: Help with modding (Java Edition)

Last seen on 13:40, 5. Mar 2023
Joined Mar 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I need help with the teleportation between dimensions

Hello, I am coding a mod with Mcreator 2020.5 and I need your help.
For the moment, I have an entity that when I right click on it, teleports me to another dimension and in this dimension, I have a block that when I click on it, teleports me back to the overworld. But the entity which is in the overworld moves and I want to know if there is a way to teleport me to this entity when I teleport back to the overworld?
(Sorry if there are mistakes, I'm not English)

Last seen on 20:50, 24. Apr 2024
Joined Jul 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Before moving to your…
Tue, 03/07/2023 - 17:11

Before moving to your dimension, you need to save your location in a player-persistent variable. When you return from the dimension, teleport yourself to that saved location.