1

I know I can get them by toggling f3, but It would be much more efficient, in my opinion, to just display it without a toggle.

2
  • Possibly with a tellraw, but definitely not directly
    – Unionhawk
    Commented Apr 27, 2016 at 22:52
  • Well, this command isn't actually made for this but you can use the /spawnpoint command :)
    – Kimatuy
    Commented Apr 28, 2016 at 1:02

4 Answers 4

3

In Minecraft Pocket Edition (from 0.16.0) you can use the command /tp ~ ~ ~, which teleports the current player to the current location. This command has the side effect of displaying the coordinates it teleported to.

This should work on the PC version as well, but I don't have access to that just now.

1
  • Just tried this in PC version 1.12 and can confirm it works! Thanks holroy!
    – CubeJockey
    Commented Aug 4, 2018 at 15:59
1

I'm sorry, but currently, there is no way to do this (that I am aware of) without using thousands of command blocks to detect each separate position and display a message for each. I hope I'm wrong, but I believe there is no way to currently do this easily

3
  • It is possible (youtube.com/watch?v=w4nOoVpeeSI) but unfortunately the video didn't explain how it was done.
    – user139899
    Commented Apr 27, 2016 at 23:06
  • Ok, I wasn't sure. I heard 1.9 added something about x, y, and z coordinates but I looked it up and didn't find anything.
    – Daniel G
    Commented Apr 27, 2016 at 23:08
  • That was actually 1.8, which is pretty cool that it doesn't require 1.9. Still wondering how it works though.
    – user139899
    Commented Apr 27, 2016 at 23:53
1

You can do it with one command block using the command:

/execute positioned as <username> run teleport <username>  ~ ~4 ~

Note: this is VERY specific with the coordinates displayed in chat.

1

Minecraft 1.13 and newer versions allow this to be done without teleporting the player:

/data get entity @s Pos
1
  • This works like a charm in 1.14.4 Commented Nov 11, 2019 at 20:22

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.