So I was wondering how to test for one player in a certain radius I’ve tried /testfor @a[r=22] that all I know. So I was wondering if any one could help me solve my problem. And I’m on Version 1.13


You can specify multiple arguments by separating them with commas. Enter the following command into a command block:

/testfor @a[name=,r=], where is a player's username and is the circular distance around the block.

You could put this command block on an infinite redstone loop to make it run over and over, all the time.


And to just detect any player in the radius leave out the name and just have the radius. Example : /testfor @a[r=]

Not the answer you're looking for? Browse other questions tagged or ask your own question.