This mod adds recall potions inspired by Terraria to Minecraft, albeit implemented a bit differently.
To make a recall potion, right-click on a respawn anchor with a potion in your main hand. Your recall potion is now linked to the coordinates of the respawn portal, and you will teleport there after drinking the recall potion when in the Nether.