This site works best with JavaScript enabled. Please enable JavaScript to get the best experience from this site.
Can anyone explain why the following will only detect players within 2 blocks of the command block, and not 2 blocks from the center point 10 blocks above?
/testfor @a[x=~,y=~10,z=~,r=2]
Don't use relative cordinates there. Put actual cordinates there and it's gonna work.
Example: /testfor @a[x=1,y=2,z=3,r=2]
Can anyone explain why the following will only detect players within 2 blocks of the command block, and not 2 blocks from the center point 10 blocks above?
Don't use relative cordinates there. Put actual cordinates there and it's gonna work.
Example: /testfor @a[x=1,y=2,z=3,r=2]