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.
minecraft-commandsminecraft-java-edition
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.
(The
r=
isn't strictly necessary, but it makes the command a little clearer.)