When in Minecraft creative mode, there are times when I need to return to the spawn point. Are there any commands (in vanilla Minecraft) that you can use to quickly teleport back to spawn?
3 Answers
If you have cheats enabled in the world then you can use the command /kill
to respawn at the spawn point. You can use the command /gamerule keepInventory true
to avoid losing items on death.
-
Is there any way to avoid losing inventory when using that command in creative mode? (I'd prefer to go back to spawn without losing my entire inventory.) Nov 26, 2012 at 17:19
-
Probably not, alternately if you know the <x,y,z> coordinates of the spawn you can use the
/tp PLAYER x y z
command to teleport the named player to the x,y,z location specified. This will keep your inventory.– HarkonenNov 26, 2012 at 17:21 -
I once played a vanilla Minecraft map called "Herobrine's Mansion" that kept the player's items on death, so there must be some way to keep items on death in vanilla Minecraft. Nov 26, 2012 at 17:24
-
5If you use the command
/gamerule keepInventory true
then you will keep your inventory on death in the current map.– HarkonenNov 26, 2012 at 17:28 -
In that case, why do you think it's not possible to avoid losing the inventory when using
/kill
? Nov 26, 2012 at 17:31
You need to have cheats on for this to work. If you use the command /gamerule keepInventory true
before using /kill
you will die and respawn at your spawn point with all your inventory. I've done it, so I can confirm it works.
-
1The order of this response would have saved me the headache of my lost inventory arrangement. :) Nov 20, 2017 at 3:12
You could always just dig straight down until you hid the void below bedrock, and that should kill you and respawn you. It will be a short trip down on creative. Still doesn't save your inventory, but its another solution
-
2Why wouldn't you just use the
/kill
command, along with/gamerule keepInventory true
? That would keep your inventory and teleport you back to spawn, without doing any damage to the map. Dec 10, 2012 at 15:38 -
1If you don't have cheats enabled, you might not be able to use the /kill command, nor the /gamerule command.– EddifiedMar 9, 2013 at 21:44