I want this too but it should be:
1- Hard to do
2- Easy to undo
There's not much of a need to move the spawn in most situations so it wouldn't be a good idea to entice new players to do it by making it an easy and accessible function and it should be easy to undo in case you set the spawn in some horrendous place and regret it as soon as you die once.