Selecting a specific area not working [closed]

Selecting a specific area not working [closed] - Free stock photo of bone, bride, christmas

So I've tried this command

/testfor @p[x=775,y=58,z=726,dx=774,dy=56,dz=717]

but it doesn't work. How can I fix this? Any ideas?



Best Answer

dx, dy and dz all specify a difference in x/y/z from the start point. If you think of it as a box with two sets of coordinates, it'd be from (x,y,z) to (x+dx, y+dy, z+dz), not to (dx, dy, dz). So, currently, your command's selection box goes from (775, 58, 727) to (1549, 114, 2217).

Instead, for a box 1 deep 2 up and 9 along starting at (774, 56, 717), your command should look like this:

/testfor @p[x=774,y=56,z=717,dx=1,dy=2,dz=9]



Pictures about "Selecting a specific area not working [closed]"

Selecting a specific area not working [closed] - Free stock photo of arts and crafts, bamboo, family
Selecting a specific area not working [closed] - A Person Using a Tool
Selecting a specific area not working [closed] - Close up of a Printing Machine





Windows 10 - How to Disable Checkboxes on Icons and Folders




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

Images: Karolina Grabowska, Karolina Grabowska, Yan Krukov, ANTONI SHKRABA