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.)