1

I have looked through many questions and have not found this, i would like to have it so the redstone activates once the player goes in a certain area, this is almost done but for some reason it is measuring the radius in chunks, not blocks, any advice?

Image of attempted command

I have tried everything, please help.

1 Answer 1

5

The m after r=2 is unnecessary and does not search for that number of chunks (thanks @Skylinerw). By adding it, the command block ignores the radius parameters and instead searches the entire world for the player. In order to search in a radius of 2 blocks, remove the m.

Your command should look like testfor @p[x=437,y=72,z=2363,r=2].

4
  • thanks a lot, ive been browsing so many forums and they all told me to do the m thing, but anyway it works now :D
    – Red202
    Commented Jun 28, 2016 at 19:54
  • 3
    No problem! Please let others with similar questions to yours find this answer by clicking the little check mark to the left of my response to accept this as the official answer.
    – Logikable
    Commented Jun 28, 2016 at 19:56
  • 2
    While removing the "m" allows it to work, it does not represent a number of chunks. It's just invalidated because it's not a number and thus the player is found anywhere in the world.
    – Skylinerw
    Commented Jun 28, 2016 at 19:58
  • My bad, I just assumed that was the case during my testing. I'll edit my answer.
    – Logikable
    Commented Jun 28, 2016 at 19:59

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .