For a simple pressure-plate & command block setup, when /spawnpoint @p (without coordinates) is operated by a command block, the command will fail after setting. /kill or dying says that the the home bed is obstructed, and returns the player to the original spawnpoint. This makes pressure plates and tripwires unreliable for setting a new spawn.
When the coordinate is set, it is within a block- namely the pressure plate or tripwire string. This is probably why the spawnpoint command fails. If the player's hitbox brushes the edge of the pressure plate or string, there's a higher chance setting spawnpoint will work.
To reproduce- place a pressure plate above the command block. Jump or land directly on the pressure plate. Type "/kill".
Nov. 1st: I tested this today. Still get the same issue landing directly on a pressure plate. This is not fixed.
Linked issues
is duplicated by 6
relates to 2
Comments 29
Yes, but a pressure plate (or string between hooks) isn't solid. A spawnpoint set doesn't appear to work if the player's hitbox is inside even redstone/transparent blocks.
the game says "oke there is a thing there , ! don't let him die in a block or something , just don't TP him so hi wont die ,'oke I tell him that he doesn't have a respawn set'." that is how it works just set the TP above the pressure plate or string
I also had a similar problem, but with a few changes:
The Command Block is set at a 1-second interval.
The /spawnpoint command sets ALL online players to an absolute position.
The spawn is in neither solid nor liquid blocks; it is in air blocks.
I never seem to reproduce mine on a different world, but the bug is still on the world I am on.
Math Maniac- I'm still having this issue as well. Probably the easiest way to reproduce this is with several pressure plates surrounding the command block. If the player position is in any of the pressure plate blocks, the command sets but fails upon player death, back to the original spawnpoint. This is odd, because pressure plates are considered non-solid.
A pressure plate is considered as a full block by the game, and you cannot spawn in a full block, so that's why it not works.
WAI.
But you could use absolute coordinates so that you can set the player's spawn to a place without any blocks
In 1.8.1 (and 1.8.2 pre-1), I can't use the /spawnpoint command anywhere! It has halted the development of my new minigame indefinitely, or at least until it is fixed!!! D:
You can spawn as long as the blocks you are in are neither liquid nor solid