Can I use command blocks to teleport to my /spawnpoint without killing me?
Essentially, I am trying to make a /sethome function in command blocks. I want to use a 'Command Book' where the command block tests if I have written /sethome, and then it /spawnpoints me to my current location. Then, if I write /home, I want it to be able to teleport me to my /spawnpoint without killing me. I really don't know how to do this or if it is even possible, any advice?
Best Answer
If you go through an end portal whilst in the end, you are returned to your spawn point.
Prerequisites:
- Set an end_portal block at a specific coordinate in every dimension (E.G: 350000, 0, 350000).
- Set up an objective to track whether players are in the end already:
/scoreboard objectives add isInEnd dummy
Then, whenever you want to teleport a player:
/scoreboard players set @a isInEnd 0/scoreboard players set @a isInEnd 1 {Dimension:1}/tp @a[score_isInEnd=0] 350000 0 350000/tp @a 350000 0 350000
Pictures about "Can I use command blocks to teleport to my /spawnpoint without killing me?"



How do I teleport to my spawn without dying?
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.How do you teleport with a command block to spawn?
Type this command in when having the command block GUI open /teleport @p <x> <y> <z> . Then, activate the command block with redstone (including buttons, levers, and pressure plates), and they will be sent to their destination. The player can set up multiple different teleports.Is there a way to teleport to your spawn point in Minecraft?
properties should have disabled command blocks, so it cannot run anymore. If not, go into server. properties and turn off command blocks. When you have broken it, close the server with /stop in the console and drag the world back to Minecraft!HOW TO MAKE A SPAWNPOINT USING A COMMAND BLOCK! ( 2019 PS4 )
More answers regarding can I use command blocks to teleport to my /spawnpoint without killing me?
Answer 2
You can just type in this simple command:
/spawnpoint [your_name_here] x y z
.x, y and z are coordinates. Then enter, you'll have a new spawnpoint at x y z!
Sources: Stack Exchange - This article follows the attribution requirements of Stack Exchange and is licensed under CC BY-SA 3.0.
Images: Anete Lusina, Sora Shimazaki, Anete Lusina, Vanessa Loring
