2

This question already has an answer here:

I want to use the command block to set the nearest player's spawn to a specific location, how to I do it? And will the player spawn there if he dies?

marked as duplicate by greg-449, Joachim, Virusbomb, galacticninja, Ivo Coumans Aug 6 at 7:17

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

1

You can do /setspawn @p 50 64 50. @p targets the nearest player, and 50 64 50 is the x,y and z coordinates. If the set player dies they will respawn at the set coordinates.

  • 1
    The question specifically asks for the /setspawn variation for the closest user, since /tp teleports the player, it doesn't set spawn. If that option exists, that is. – Arperum Dec 13 '13 at 14:25
  • 1
    @Arperum that option exists. The appropriate command would be /spawnpoint @p x y z – Unionhawk Dec 13 '13 at 16:37
0

/setspawn @p in the command block to set the spawn. But you need to be in opped creative to make it work.

0

What you would do is set a team spawn, this can be done by using this:

[c1]=*****=[c2]

(c1 = /scoreboard teams join (Team) @p )

(c2 = /setspawn @a[team=(Team)] x y z)

(=) = Repetor

(*) = Redstone

0

Use /tp @p [x] [y] [z] This will teleport the nearest player to a specific location.

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