This is a read-only snapshot of the ComputerCraft forums, taken in April 2020.
korupt_virus's profile picture

[Lua] Counter

Started by korupt_virus, 12 April 2012 - 09:26 PM
korupt_virus #1
Posted 12 April 2012 - 11:26 PM
i have created a counter that puts ic2 uum into chests for me using item detectors for redpower. and i was wonder if there is any way to be able to pull from these chests and subtract from the numbers saved at counter.txt. http://pastebin.com/PAESiujN
virtualayu #2
Posted 12 April 2012 - 11:44 PM
I think your other counter that i help you to code do it you just have to put this code in your new counter's code. If you wan't me to help just ask me.
korupt_virus #3
Posted 12 April 2012 - 11:46 PM
this is the same counter just slightly edited to not throw errors.. i need i to the reverse function of this
virtualayu #4
Posted 13 April 2012 - 06:14 AM
Your other code is decrementing vars and send a redstone signal so it already does what you want….