Create a bed and sleep in it. Doing so sets your spawn point if you die and also later allows you to teleport to it.