I'm working on a system to detect right clicks using a villager and than trigger several commands. I'm using an always active repeating commandblock to start a chain of commandblocks which run the commands I need them to run. I've setup a scoreboard objective called torchLever and set it to:
so it increases everytime I talk to a villager.
I'm now trying to see if a player has the value of the scoreboard set to 1 with this command
/execute as @p if score @s torchLever matches 1.. run say hi
however this does not seem to work. I've tested a few different commands like the one in this article but that doesn't work either.
How can I see if there is a player with the
torchLever score set to 1 and than start executing a bunch of commands?