How do you use the /testfor command to test for players at specific coordinates? I've seen this question but it doesn't work in PE. So far I have /testfor @a[x=X, y=Y, z=Z] but that acts like @a and ignores the [x=X, y=Y, z=Z] part. X, Y and Z are actual coordinates. Is this possible in PE?

I am playing Pocket Edition 1.1.4.

1 Answer 1


You forgot the specify a radius using "r". The coordinates just tell it from where to look, not the area in which it should look.

  • I only want it to look on that block. Would that be r=1? Jul 23, 2017 at 11:51
  • Yes, that should work.
    – Pepijn
    Jul 23, 2017 at 15:06
  • @cherryblossom Did this answer your question? If yes, please mark it as accepted so that this question doesn't remain open. Aug 10, 2017 at 18:27

You must log in to answer this question.

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