Minecraft item right/left click detection

Is it possible to create an item in Minecraft so that, when the player right's click on a certain block with it, their position (x,y,z)
becomes (x,y,z) + (n0,n1,n2)
? I know something like this is possible, after seeing SethBling's TF2-eqsue minigun with command blocks, but I'm not sure as to the solution. I am running Minecraft version 1.8.7/1.8.x
.
Example
Create a stick named YELLOW so that when the player right-clicks on yellow wool they will be teleported n
units to the south.
(I am trying to create a maze with 4 different wool colours that will move you to a different square on a respective maze.)
Pictures about "Minecraft item right/left click detection"



How do you make a right click detector in Minecraft?
The right button is used for a lot of things: placing blocks. using certain tools (hoeing farmland; shearing sheep) firing bows (hold to build power, then release)Minecraft - Right Click Detection For Any Item
Sources: Stack Exchange - This article follows the attribution requirements of Stack Exchange and is licensed under CC BY-SA 3.0.
Images: Karolina Grabowska, Vojtech Okenka, Lex Photography, Andrea Piacquadio