3

I'm in a HUMONGOUS RPG map, and I fenced in a horse near the edge of a forest. I have two problems:

  • I want my horse back
  • I want to find the area where that was

I can't find the area, and I want to get there. I know commands to tp the horse to me, but I want to find that whole area, not just the horse. So is there a command to locate the horse? A command that will just give me the coordinates?

0

3 Answers 3

2

No, there is no command to locate an entity.

There is however a way, but be aware that this will always require the horse to be loaded first of all, so you need to be inside render distance from it or it has to be in the spawn chunks.

You do /tp @p @e[type=horse,c=1] to teleport yourself to the nearest horse.

You can also try to do /tp @e[type=horse] ~ ~ ~. This should print the coordinates of every loaded horse in chat, because it will teleport them to the coordinates where they already are and return the success message containing the coordinates (be aware this this will be different in version 1.13).

13
  • Can't you get an identifier for a specific horse? Oct 12, 2017 at 10:24
  • Could you elaborate on what you mean by "identifier"?
    – Plagiatus
    Oct 12, 2017 at 20:55
  • 1
    There is not. The game doesn't save any arbitrary action you make to the log file. Also, the horse probably didn't spawn there but was placed there by the map maker. So no, this doesn't help.
    – Plagiatus
    Oct 18, 2017 at 5:56
  • 1
    The problem is that they don't find the area anymore. So they wont find the horse either???
    – Plagiatus
    Oct 19, 2017 at 9:12
  • 1
    And you're telling me this NOW? You can do @e[type=horse,name=Whateveryounamedyourhorse] in the teleport then if there are no spaces or commas in the name to get teleported to the horse directly (if it's loaded).
    – Plagiatus
    Dec 7, 2017 at 12:23
2

With the new 1.13 update, that command does not work but you can use:

/tp @e[type=minecraft:horse,limit=1,sort=nearest]

to teleport you to the nearest horse.

1
  • That did the trick for me.
    – Axel
    Aug 14, 2018 at 11:21
0

You can use @e[type=horse,name=whateveryounamedyourhorse] in the teleport, then, if there are no spaces or commas in the name, you get teleported to the horse directly (if it's loaded).

I did this and I found my horse Maximus.

1
  • i go my horse back and i am happy thanks arqade i am really happy
    – Dakota
    Jul 16, 2022 at 9:40

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .