So for a map, I want to have the players re-spawn where they died so they can continue playing. I have a concept in my head that I can't quite figure out.

I was thinking of having an armor stand continue to tp to the player and set the spawnpoint to the armor stand, but my knowledge in this area is limited and I'm not sure how to go about this or if this would even work. I am not stuck on this concept and am open to other ideas.

  • What Minecraft version are you using? Commented Mar 4, 2016 at 22:34
  • Officially using 1.9
    – Jason_
    Commented Mar 4, 2016 at 22:35
  • Just to let you know, I updated my answer. You should have a better time with the newer command. :) Commented Mar 6, 2016 at 0:22

1 Answer 1


You can always use a command block with the following setup:

enter image description here

Replace <name> with your name, obviously.

If you want to do this with all users on a single world, use the following command:

/spawnpoint @a

Make sure you turn off command block output, though, and also make sure you put this block in a permanently loaded chunk (your spawn chunks, for example). You may wish to use a setup involving repeaters instead of a repeating command block (as repeating command blocks act very quickly, and may cause lag). I'd generally suggest against doing this, however, because you don't prevent yourself from dying in a loop (which is not only possible, but probable in this).

  • You should not be mixing @a as the executor with @p as the target. @a is the only selector that can target dead players, meaning if the player dies, they will set the nearest-living player's spawnpoint instead of their own. However, using /execute is not necessary because /spawnpoint alone will set the targeted player's spawnpoint to their own location. Using /execute here will only serve to increase the work the server needs to do.
    – Skylinerw
    Commented Mar 5, 2016 at 22:56
  • 1
    @Skylinerw Ah - thank you. I've been using spawnpoint wrong all along. Fixing. Commented Mar 5, 2016 at 23:45

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .