0

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? – Addison Crump Mar 4 '16 at 22:34
  • Officially using 1.9 – Jason_ Mar 4 '16 at 22:35
  • Just to let you know, I updated my answer. You should have a better time with the newer command. :) – Addison Crump Mar 6 '16 at 0:22
2

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).

| improve this answer | |
  • 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 Mar 5 '16 at 22:56
  • 1
    @Skylinerw Ah - thank you. I've been using spawnpoint wrong all along. Fixing. – Addison Crump Mar 5 '16 at 23:45

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.