I'm trying to set up a trap for my friend on my server, I want to use command blocks, not tripwire.
I know the
/testfor command, but it always says that it found me and doesn't give another output.
You can do this with the
Execute Notch ~ ~ ~ detect ~ ~-1 ~ grass 0 <command>
Replace notch with your friend's name, replace grass with the block name you want him to be standing on, and replace command with the command you want to do.