Arqade Asked on June 4, 2021
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:
@e[type=minecraft:fox,nbt={Type:"minecraft:snow"}]
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.
Correct answer by ExpertCoder14 on June 4, 2021
Get help from others!
Recent Answers
Recent Questions
© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP