I'm trying to /testfor a player on a block
//ads -- adsterra.com -- native banner
?>
I am trying to make a command block that when a player walks over a block, it will detect the player and activate another command block with a different command. I tried:
/testfor @p {coordinates of the block}
but this doesn't work.
Best Answer
According to this page from the Minecraft wiki, you also need to specify a radius within the block to check for the player.
To count the number of players in survival mode within a 3-block radius of (0,64,0):
testfor @a[0,64,0,r=3,m=0]
(The r= isn't strictly necessary, but it makes the command a little clearer.)
Pictures about "I'm trying to /testfor a player on a block"



How do you Testfor a player on a block?
How to Enter the CommandKendrick Lamar - i (Official Video)
Sources: Stack Exchange - This article follows the attribution requirements of Stack Exchange and is licensed under CC BY-SA 3.0.
Images: Jim De Ramos, Pixabay, Alex Tepetidis, Alex Tepetidis
