2

Is there an easy way to get the coordinates of a specific player using command blocks? I was trying to find a way to do this but I could not find any info about it.

  • It really kind of depends on what you want to do with these coordinates. That said, I think it might be possible to return PlayerX PlayerY and PlayerZ as a scoreboard. I'm not sure. If you want to do something with those coordinates, other commands will be your friend. – Unionhawk Nov 22 '14 at 5:18
  • @Unionhawk It was made possible by WubbiConcepts and improved by staffehn. youtube.com/watch?v=cThnjDTxUUQ – QbsidianH20 Nov 23 '14 at 20:01
  • 1
    If you just want specific players' coordinates displayed in chat screen, this command will do it without affecting gameplay : /tp <Player/Entity> ~ ~ ~ – QbsidianH20 Nov 23 '14 at 20:04
2

This is impossible for now, unless using special plugins (when you are running a Bukkit server or something like that). You can only get your own coordinates by using F3.

Sole_Wolf commented that you can use the Bukkit plugin MapCoOrds if you are running a server in the possible duplicate passage that I suggested.

You can also use a map to see other players, but other players can see you as well. Also, you can't get their exact coordinates.

If you are targeting a specific player in a command, simply type their name on the <Player> tag or do @p for nearest player, @r for random player or @a for all players.

  • You could also use Essentials' /whois [playername] which lists their prefix, nicknames (if any), locations, money etc. – aytimothy Nov 22 '14 at 11:13
  • @Vanguard66 Is my answer OK? If yes please press the tick thing. – 54D Nov 22 '14 at 11:47
  • @aytimothy really? I thought /whois no longer exists XD – 54D Nov 22 '14 at 11:48
  • I remembered using it on a 1.7.10 server on a 1.8 client. Either it's still there, or that server is running an older version of Essentials (1.6 release was the last time I saw the /whois command) – aytimothy Nov 22 '14 at 12:10

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