With RCoIu (Run Command on Item use), you can execute ANY command when a player uses a specific item (right-click/hold down/...). Example: When a player uses a compass, they are teleported to the spawn point.
How it works: For example if you want to teleport someone who used a compass, you just need to do one of this Commands:
tp @a[tag="itemUse:minecraft:compass"] 0 0 0tp @a[tag="itemUse:minecraft:compass", tag="itemUseName:Spawn"] 0 0 0tp @a[tag="itemUseOn:minecraft:compass"] 0 0 0tp @a[tag="itemUseOn:minecraft:compass", tag="itemUseName:Spawn"] 0 0 0

