Check out my new Flower Pot Resource Pack for Java Edition
If the player right-clicks the Magic Mirror onto a lodestone the current XYZ of the player will be saved, Once a Mirror is Binded to a lodestone and you have at least 3 xp Levels, the player can teleport back to the same location. When the player uses a Magic Mirror, they play a vibration where they teleport too
Currently its only Limited to the Overworld.