How do I add a radius to a tp command with another specification?

How do I add a radius to a tp command with another specification? - Unrecognizable woman holding paw of dog

I'm trying to make a certain amount of villagers look a certain way, but I can't figure out how to add a radius (so only some of the villagers look that way).

My command is /tp @e[type=Villager] ~ ~ ~ -90 30



Best Answer

Use this:

/tp @e[type=Villager,r=N] ~ ~ ~ -90 30 

"N" is the size (in blocks) of the radius.




Pictures about "How do I add a radius to a tp command with another specification?"

How do I add a radius to a tp command with another specification? - Crop hacker silhouette typing on computer keyboard while hacking system
How do I add a radius to a tp command with another specification? - Side view of young woman in hoodie sitting on floor near sofa and playing with obedient brown Labrador while resting during free time
How do I add a radius to a tp command with another specification? - Unrecognizable Woman Handing Over Mobile Phone to Another Woman



How do you teleport to a radius in Minecraft?

To teleport yourself to another dimension, open the chat box and type: /execute in DimensionName run tp PlayerName ~ ~ ~.

What is the command to teleport to other dimensions in Minecraft?

Range 2 is the range a player want for a command block under a floor. Keep in mind that it will produce a globe shaped trigger area (rather than a cube), so a range of 2 makes an approximately 5\xd75\xd75 area and a range of 1 makes a 3\xd73\xd73 area (more like a + pattern with an extra block above and below the center).



RuneLite Plugins Everyone Should Be Using - This is My Setup




Sources: Stack Exchange - This article follows the attribution requirements of Stack Exchange and is licensed under CC BY-SA 3.0.

Images: Ivan Babydov, Anete Lusina, Ivan Babydov, Max Mishin