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