Set a home anywhere you would like using the command /sethome . Then you can retrieve the coordiantes and the world of the home using the command /home. This will NOT teleport you to the home location. You can delete your home using the command /delhome.
- Tested Minecraft Versions: