I need help with the teleportation between dimensions

Started by aBriocheee on

Topic category: Help with Minecraft modding (Java Edition)

Active 2 years ago
Joined Mar 2023
Points:
284

User statistics:

  • Modifications: 0
  • Forum topics: 1
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 0
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)

Active 2 minutes ago
Joined Jul 2020
Points:
1256

User statistics:

  • Modifications: 6
  • Forum topics: 90
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 248
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.