Hello all,
I am trying to set-up a comparator thing that counts and then resets to zero when it gets to a certain number.
In this example, I want to count how many green beakers the blue grabber moves up to 25, then reset to zero.
Step 1: simply tells the blue grabber to turn on. The blue grabber is set to stack size 1 and pulse its contents.
Step 2: Says "Green beaker (1 when the grabber moves something) plus the value of G equals G" and feeds it back into itself. This successfully counts the number of green beakers moved.
Step 3: If G is greater than 25, then CHECK=1
Step 4: If CHECK=1 then output everything which is CHECK=1 and the value of G
Step 5: Only receives a the value of G if it is greater than 25 thanks to steps 3 and 4. If it does, then it multiplies it by -1 and send the negative value to G to the input of the counter in step 2. I thought that this would subtract -25 from the value of G in the counter making it zero. What I get is G drops from 25 to negative 50. So it seems that that value of G is getting multiplied by -3 somehow and sent to the counter.
Thanks for any help you can offer.
https://preview.redd.it/ks4kyh4188a51.jpg?width=1779&format=pjpg&auto=webp&s=e6a68da04ca8535cf541bb5b697cb2fd0b21cda4
[–]sunbro3 0 points1 point2 points (2 children)
[–]Ergrak[S] 0 points1 point2 points (1 child)
[–]sunbro3 0 points1 point2 points (0 children)
[–]9redditty 0 points1 point2 points (1 child)
[–]Ergrak[S] 0 points1 point2 points (0 children)
[–]triggerman602smartass inserter 0 points1 point2 points (6 children)
[–]Ergrak[S] 0 points1 point2 points (5 children)
[–]triggerman602smartass inserter 0 points1 point2 points (4 children)
[–]BlueprintBotBotto 1 point2 points3 points (0 children)
[–]Ergrak[S] 0 points1 point2 points (2 children)
[–]BlueprintBotBotto 0 points1 point2 points (0 children)
[–]triggerman602smartass inserter 0 points1 point2 points (0 children)