I know how to tp to the nearest fox regardless of what type it is. It would be performed via the following command:

/tp @s @e[type=fox,sort=nearest,limit=1]

However, I was wondering how would you specify that the mob you are typing to must be an arctic fox? I tried implementing what this post was talking about with adding nbt data to it. So I tried the following command:

/tp @s @e[type=fox,nbt={tag:{EntityTag:{Type:snow}}},sort=nearest,limit=1]

But it still didn't seem to work and error out. Could someone give me a correct command to do this?


Entity tags when referring to actual entities should just be in the root tag, not in any subtags.

Try this:


I don't have access to the NBT structure of fox data at the moment so you may want to take a look at that too.

  • Don't you have to specify which entity it is though? Doesn't seem to work hm. I will try and take a look further. Jan 15 '21 at 18:49
  • @PulseBeat_02 You don't actually need to specify the type unless the NBT tags don't uniquely identify an entity. I've updated the answer to include the type, and I've also provided a different way. Maybe minecraft:snow works instead? Jan 16 '21 at 0:20
  • That seemed to work. Thanks for the answer! Jan 17 '21 at 14:21

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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