How can I use command blocks to detect a specific player within a certain radius of the command?
I can detect a specific player, or a player within a certain radius, but not both.
You can specify multiple arguments by separating them with commas. Enter the following command into a command block:
/testfor @a[name=<name>,r=<radius>], where
<name> is a player's username and
<radius> 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.
Thank you for your interest in this question.
Because it has attracted low-quality or spam answers that had to be removed, posting an answer now requires 10 reputation on this site (the association bonus does not count).
Would you like to answer one of these unanswered questions instead?