Me and my friends are making an advanced parkour map and it is filled with redstone.
One of the repeater circles has 4 command blocks with the following command:
/execute @a ~ ~ ~ detect ~ ~-1 ~ minecraft:stonebrick 1 /tp @p @e{type=Villager]
When ANY player steps on mossy stonebrick (minecraft:stonebrick 1)
it teleports the nearest player to the command block to the villager regardless if he step on the mossy cobble. So we edited the command to:
/execute @a ~ ~ ~ detect ~ ~-1 ~ minecraft:stonebrick 1 /tp @a @e{type=Villager]
Which is what is now. It's temporarily but works like it's supposed to, but now I have to re-teleport the villager whenever I'm working on a new addition, which is annoying. Not to mention on how far another the other person has to go if he is testing out the parkour map.
That brought me to an idea: Find the person responsible and teleport only him. I know this is possible because I found a parkour map that does this (unfortunately I cannot find the responsible command block for this).
TLDR: How do I execute a command that detects if anyone steps on mossy stone bricks and teleport the responsible player?
(P.S. The map that this kill the responsible player [I need to teleport]: http://www.yourminecraft.com/lava-and-slime-parkour-map)