Posted 03 November 2015 - 07:25 AM
So, I have a project, and its principal purpose is to monitor the status of machines. (I'm using Tekkit.)
I will start with the simplest question.
How do I get a computer to look for a redstone signal, and respond acordingly?
So far, here's what I got
This has given me much trouble. I want it to be a constantly refreshing program, that constantly looks for a true/false redstone signal, and returns a signal acordingly.
I've tried various loops, but to no effect, as the computer breaks the loop if it doesn't recieve an input for five seconds, which, is not the desired effect atm.
If anyone could get me headed in the right direction, that would be awesome.
Thanks.
I will start with the simplest question.
How do I get a computer to look for a redstone signal, and respond acordingly?
So far, here's what I got
if redstone.getInput("right", false) then
redstone.setOutput("back", true) else
redstone.setOutput("back", false)
end
This has given me much trouble. I want it to be a constantly refreshing program, that constantly looks for a true/false redstone signal, and returns a signal acordingly.
I've tried various loops, but to no effect, as the computer breaks the loop if it doesn't recieve an input for five seconds, which, is not the desired effect atm.
If anyone could get me headed in the right direction, that would be awesome.
Thanks.