1

How to set a exact spawn point with commandblocks

xXka3lXx's Avatar xXka3lXx7/17/17 6:38 pm
1 emeralds 16.3k 15
7/20/2017 3:21 pm
BenceTheGreat's Avatar BenceTheGreat
hello, i've seen this question a lot before and i finally found an answer. when you do
/set worldspawnpoint it makes you spawn within 30 blocks from the desired point. if you want to spawn in a specific spot you need a repeating command block. you can get this by doing /give [username] minecraft:repeating_command_block. then place it and turn it to always active. then type /testfor @a. now press done then put a comparator facing away from it then put a regular commandblock in front of it. you can get this by doing
/give [username] minecraft:command_block. then type /tp @a [x] [y] [z]. to test if it works log off the world then go back on. you should be at the exact coordinates you put in the second command block. i hope this helped you.

EDIT: ive seen this in the comments 2 times already so if you want to make it so you spawn in creative/adventure/spectator then add another commandblock next to the commandblock with the tp command in it. then type in /gamemode [gamemode]

the easiest way i found in the comments was by Gealx3 he said turn /gamerule spawnRadius 0 which i find the easiest way to do this.
Posted by xXka3lXx's Avatar
xXka3lXx
Level 15 : Journeyman Miner
3

Create an account or sign in to comment.

15

info Note: You're viewing a single reply. View all replies
1
07/19/2017 9:19 pm
Level 15 : Journeyman Miner
xXka3lXx
xXka3lXx's Avatar
1. it hasnt buged for me
2. this is mainly for map makers so people will spawn in the spawn room so it shouldn't matter if you die. if they wanted people to spawn somewhere else once the player dies the way you suggest could be a better way but this is just so they spawn into the world in the right place.
3.if you do /defaultgamemode adventure you would spawn at the point the world automatically sets it to which means you will have to get mcedit and thats impossible to get if your a linux user like me
4.the death count way could be used for regular survival but if your a map maker you would re spawn in the start room so every time the player dies he/she will need to start over
1
07/20/2017 8:21 am
Level 70 : Legendary Engineer
Bertiecrafter
Bertiecrafter's Avatar
1. okay
2. This was not clear from your story, spawning includes reviving after death. And besides, if you re-load the world (e.g by going back to the menu on Single Player) this DOES indeed trigger again and teleport the player AGAIN.
3. You can do /setwoldspawn.
4. This is not just for survival, it's for any map including a respawn after death. You are right about the coordinates not being changeable, but the same goes for your solution. Your /tp command is just as static as my /tp command applied in different situations.
Planet Minecraft

Website

© 2010 - 2024
www.planetminecraft.com

Welcome