[MC-8964] /spawnpoint @p ~0 ~0 ~0 not working as expected Created: 01/Feb/13  Updated: 30/Apr/17  Resolved: 09/Aug/14

Status: Resolved
Project: Minecraft: Java Edition
Component/s: None
Affects Version/s: Minecraft 1.4.7, Snapshot 13w04a, Snapshot 13w05a, Snapshot 13w05b, Minecraft 1.7.10, Minecraft 14w30c
Fix Version/s: None

Type: Bug
Reporter: Tristan Abshire Assignee: Unassigned
Resolution: Invalid Votes: 3
Labels: None

Issue Links:
Duplicate
is duplicated by MC-63964 Spawnpoint doesn't work with relative... Resolved
Confirmation Status: Unconfirmed

 Description   

Trying to work on a CoD:Zombies styled map, much like Sethbling's TF2 and Smash Bros ones.
Found out that you can't set the spawnpoint of a player using relative coordinates. Which I think is strange if we can use relative coordinates for teleports.



 Comments   
Comment by qmagnet [ 10/Aug/14 ]

If they are returned to the worldspawn, then the spawn wasn't set properly. The game will say that spawnpoint was set even in an obstructed location. Execute @p works fine.

Comment by Nicholas Hills [ 10/Aug/14 ]

I fully agree that you can, and whilst the block outputs that it has set the player's spawn to whatever the relative command should be, (at least in the examples I have tested and in versions up to 14w30) when the player is killed thy are returned to worldspawn

Comment by qmagnet [ 10/Aug/14 ]

Yes it does. With execute you can issue a spawnpoint command with relative coordinates.

Comment by Nicholas Hills [ 10/Aug/14 ]

Indeed whilst you can execute for spawnpoints, there is a particular issue that executed spawnpoint does not accept relative co-ordinates when run in an execute as detailed in MC-63964.

Comment by qmagnet [ 09/Aug/14 ]

Tails, you can resolve this bug. Execute can handle this type of request now.

Comment by Tails [ 18/Mar/13 ]

Is this still a concern in the current Minecraft version? If so, please update the affected versions in order to best aid Mojang ensuring bugs are still valid in the latest releases/pre-releases.

Comment by Dean Baset [ 04/Feb/13 ]

Nope! If you only do "/spawnpoint @p", it will set their spawn to their current location.

Comment by Tristan Abshire [ 04/Feb/13 ]

Doesn't /spawnpoint @p require coordinates to function though?

And your system above would cause unnecessary jittering for the player

Comment by Dean Baset [ 03/Feb/13 ]

While I can see why this is bothering, you can work around this problem like this:
If you want to do /spawnpoint @p ~5 ~-10 ~0

Then do this:
/tp @p ~5 ~-10 ~0
/spawnpoint @p
/tp @p ~-5 ~10 ~0

Generated at Sun Jan 12 12:19:31 UTC 2025 using Jira 9.12.2#9120002-sha1:301bf498dd45d800842af0b84230f1bb58606c13.