How to right click items repeatedly with redstone/command blocks
I have made a command block system that testfors when you have a blaze rod in your first slot and it's highlighted. If this all comes out true, then it will summon an armor stand, where another command searches when a blaze rod is placed in his hand. Then it executes a command that teleports you up higher.
So basically, what's happening is when you right-click the blaze rod, it will teleport you higher up.
My question: After teleporting me, how can I make the blaze rod "reset" so, I can just right-click it again as many times as I want without having to unselect it, and move to a different inventory slot, and go back on the blaze rod slot again. For, my system only resets when you hover on a different slot, rather than staying on the same slot and using the system repeatedly. I want it so you can stay on the same slot and use it many times.
Any ways to accomplish this?
Here is a picture of what my machine looks like.
Test for commands next to redstone block. Testfor armor stand holding blaze rod on left side Testfor player holding rod, selected in first slot on right side
Far right: Kills armorstand if blaze rod on slot 1 is NOT selected.
Top: summons the armor stand that follows player
Left: once armor stand has blaze rod, it gets removed, players inventoy cleared, a new blaze rod is placed, and it teleports player upward.
This is being used in 1.9, 15w46.
Is there any ideas on how to accomplish this?
Pictures about "How to right click items repeatedly with redstone/command blocks"



How do you make a repeating Redstone Command Block?
To get a repeating command block, players must use the /give command like so: /give @p minecraft:repeating_command_block <amount> . Players can also change a normal command block into a repeating command block by selecting the option in the command block GUI.How do you activate a repeating command block?
If redstone wire comes in the form of a cross, the player can right-click to toggle it between a cross and dot. A redstone dot does not power anything adjacent to it, but powers the block under it.What does right clicking on Redstone do?
A repeat command block executes its command once every one game tick (or more\u200c [BEonly]) until no longer activated.Right Click Detection in Vanilla Minecraft [1.16 Command Blocks]
Sources: Stack Exchange - This article follows the attribution requirements of Stack Exchange and is licensed under CC BY-SA 3.0.
Images: Sharon McCutcheon, billow926, Sandro Sandrone Lazzarini, ANTONI SHKRABA

