1

I am trying to make a kit pvp map, and when players enter the game they are supposed to spawn on a floating platform, but they just spawn where they left the game last.

If a player dies they spawn at the right spot, but not when they enter the game.

Also, is there anyway to change the direction you point in when you spawn?

1 Answer 1

3
  1. Add a new objective that tracks when the game has been quit:

    /scoreboard objectives add GameQuit stat.leaveGame

  2. On a redstone block clock, have these two commands in this order:

    tp @a[score_GameQuit_min=1] X Y Z XROT YROT

    scoreboard players set @a[score_GameQuit_min=1] GameQuit 0

enter image description here

Replace X Y Z with the coordinates you want the player to log in on, and XROT YROT with the rotation you want them to log in on.

6
  • Thanks! Do I just build the picture exactly, commands and all, or otherwise? @colorfusion Commented Sep 5, 2014 at 19:39
  • @ArtiSchmidt Building it exactly as pictured should work, although make sure to replace "X Y Z XROT YROT" with the coordinates and rotation you want. Also use F3 to make sure that positive X (east) is in the direction of the arrow on the picture.
    – SirBenet
    Commented Sep 5, 2014 at 20:40
  • Ok, so build what it shows in the picture, but do I use the commands in the picture or in your answer? And all the command should have / in front of them right? @colorfusion Commented Sep 6, 2014 at 0:01
  • @ArtiSchmidt The commands in the picture and in my answer are the same ones. Follow what I say in the answer: Run the add objective command, then build the clock (shown in the picture). A "/" doesn't matter in command blocks.
    – SirBenet
    Commented Sep 6, 2014 at 13:27
  • I tried this but it doesn't seem to work. I made sure it was pointed towards positive x. I put the "new objective in a command block a few blocks away from the clock, was I supposed to put it in a command block? I'm new to this so I don't know a lot of things about it. By the way, I did use slashes in the command blocks. @colorfusion Commented Sep 7, 2014 at 16:51

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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