Terraria item ID 2997. Terraria 1.4.5.7.
The Wormhole Potion is a potion which allows a player to instantly teleport to another team member's location in multiplayer, done by selecting their player icon in the full-screen map (accessible by pressing the Toggle Full Map key) once consumed. It is only possible to teleport to players of the same team, and the teleport will be announced in a status message. It is not possible to use Wormhole Potions if the player has the minimap disabled.
Crafted at Placed Bottle / Alchemy Table, makes 3. Ingredients:
Description from the Terraria Wiki.