Toggle Switch with a Predicate
Ok so i have a predicate that i have made. I want to make it to where when someone does predicate requirements it will turn on night vision and when they do the same requirements it will turn it back off. I am struggling because the predicate detection its constant and so when i try to make a toggle with a scoreboard it just flips on and off at the same time. any tips?
Edit: Let me explain this better.
I am trying to make a thing where when a person holds a torch, crouches, and jumps at the same time it will toggle night vision for them. I have a predicate for detecting when someone is doing all 3. The predicate is based of input tho so if you hold it, itll send a true signal every tick the input is held.
I am trying to make it to where it can take this input and toggle. My problem is that because it is sending a true signal for every tick its held it then causes my table to change every tick. Even if you dont mean to hold them down it still will detect it for multiple ticks there for making every tick its detected switch from on to off. Thats not what i want at all. I want it to turn it on when they do it but not back off untill they let go and do it again.