This site works best with JavaScript enabled. Please enable JavaScript to get the best experience from this site.
I'm working on an adventure map.
I need to teleport a group of villagers based on profession to a new location. How do I form the target selector for the /tp command?
I've tried a number of things ...
None of these work. I'm oh so very confused.
Hey! you were close but had a few details off... here is a command that works for 1.17.1
tp @e[type=minecraft:villager,nbt={VillagerData:{profession:"minecraft:fletcher"}}] ~ ~ ~
Just make sure both chunks are loaded with e player nearby if you are going large distances....
- Cubic
Hey im a bit confused by what you mean... In my previous response I gave a command that will work you just need to change the profession accordingly... Did the command not work?
cheers,
Cubic
heyy it's been three years and i'm not the same person but this worked for me thank you!! got all my lazy villagers out into the town to start workin
I'm working on an adventure map.
I need to teleport a group of villagers based on profession to a new location. How do I form the target selector for the /tp command?
I've tried a number of things ...
None of these work. I'm oh so very confused.
Hey! you were close but had a few details off... here is a command that works for 1.17.1
tp @e[type=minecraft:villager,nbt={VillagerData:{profession:"minecraft:fletcher"}}] ~ ~ ~
Just make sure both chunks are loaded with e player nearby if you are going large distances....
- Cubic
Hey im a bit confused by what you mean... In my previous response I gave a command that will work you just need to change the profession accordingly... Did the command not work?
cheers,
Cubic
- Cubic
heyy it's been three years and i'm not the same person but this worked for me thank you!! got all my lazy villagers out into the town to start workin