9

I told my wolves to sit down and I accidentally forgot to tell them to stand up and I left them. Now I cannot find them, how do you get back to your wolves if they are lost?

2
  • I would imagine you might be able to construct a command that will tp the wolves to your location.
    – Ben
    Dec 8, 2014 at 0:58
  • I'll add this as a comment first (because it's a bit of a guess, and probably needs some work, but here goes). /tp @e[type=Wolf {Owner:<playername>}] @p
    – Ben
    Dec 8, 2014 at 1:35

2 Answers 2

3

If you're not opposed to cheats, you can theoretically teleport just your wolves with a series of three commands:

/scoreboard objectives add mine dummy
/scoreboard players set @e[type=Wolf] mine 1 {Sitting:1}
/tp @e[score_mine_min=1] @p

What this does is sets up a scoreboard to select your wolves, sets it for all wolves that are sitting, and teleports those wolves to you.

Alternatively, you could teleport all wolves with just one command:

/tp @e[type=Wolf] @p

Keep in mind, though, this will only work for wolves in loaded chunks. So you're going to need to be within about 8 chunks of where your wolves were last, and also in the same dimension. But if you know approximately where they are, within several hundred blocks, and are open to cheating, this would work.

If you happened to be on a server, the "all that are sitting" method might not work out too well. For that, assuming you also have access to cheats there, replace Sitting:1 with OwnerUUID="<your UUID here>". You'll need to figure out your UUID and copy it in. But, if you're in single player, checking to see if they are sitting will work just fine.

3
  • 1
    Dear Dinnerbone: Some way to include datatag matching on entity selectors directly, rather than requiring a roundabout scoreboard solution, would be excellent.
    – Unionhawk
    Dec 10, 2014 at 6:14
  • 1
    I have a similar situation: Several of my wolves were lost while following me around in the wilderness. Unfortunately, I jumped in a boat, and singe they were unable to follow me (they tp to the player when they are standing on land only) the chunks they were in became unloaded, and Therefore are unable to tp to me naturally. Will this address that as well?
    – Ben
    Sep 14, 2017 at 23:21
  • @Ben I don't think so. I don't have a good solution to this issue off the top of my head
    – Unionhawk
    Sep 15, 2017 at 1:39
3

In newer versions of minecraft you can use NBT in your target selector. Teleporting all of your wolves to you can therefor be done somewhat easily with a command like this:

/tp @e[type=minecraft:wolf,nbt={OwnerUUID:"????????-????-????-????-????????????"}] ~ ~ ~

You have to replace the question marks with your UUID.

You can get your UUID in-game by using /data get entity <target selector for one of your pets> OwnerUUID.
Or you can use this link: https://api.mojang.com/users/profiles/minecraft/<your username>
Or you can take your NBT-data and convert UUIDMost and UUIDLeast into your UUID. I'm not completely sure how to do that and it seems to be somewhat complicated.
Or you can go to the save data of one of your worlds, go into the playerdata-folder (C:\Users\<your name>\AppData\Roaming\.minecraft\saves\<world name>\playerdata) and look at the name of the file inside. There should be one file for every player who has been in that world and the file name is their UUID.

Note: This will only teleport your wolves to you and only those that are currently loaded. If you are too far away they may be sitting in an unloaded chunk, then they won't be affected by the command.

To simply teleport all sitting wolves to you, regardless of who owns them, you can use this command instead:

/tp @e[type=minecraft:wolf,nbt={Sitting:1b}] ~ ~ ~

You must log in to answer this question.

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