Survival
Does a compass point to your bed in Minecraft?
A normal compass points to the world spawn in the Overworld. Your bed can set a separate personal respawn point.

1. Craft the compass
Put redstone dust in the center and iron ingots directly above, below, left, and right.
2. Mark a different destination
Use a compass on a lodestone to link it to that block. Keep your base coordinates as a backup before traveling.