Minecraft wiki entry for Recovery_Compass, associated text: The recovery compass will only work when it is held by a player who has previously died, and is in the same dimension where the player had died. Otherwise, it will spin around randomly.