Posted 15 July 2012 - 03:39 PM
So guys, i have a problem with a program i wrote to fix the program of the other program, it's pretty simple
<code>
Basically, it checks if redstone current is applied and if not it send a redstone signal to a lamp. The problem is, the green one doesn't work D: I tried also with the white, nothing happened, any suggestions?
Thanks :P/>/>
P.s. This is in a function, but i don't think that's the problem D:
<code>
while true do
os.pullEvent("redstone")
if rs.testBundledInput("left", colors.orange) == false
then rs.setBundledOutput("right", colors.orange)
elseif rs.testBundledInput("left", colors.orange) == true
then rs.setBundledOutput("right", 0)
end
if rs.testBundledInput("left", colors.green) == false
then rs.setBundledOutput("right", colors.green)
elseif rs.testBundledInput("left", colors.green) == true
then rs.setBundledOutput("right", 0)
end
if rs.testBundledInput("left", colors.lightBlue) == false
then rs.setBundledOutput("right", colors.lightBlue)
elseif rs.testBundledInput("left", colors.lightBlue) == true
then rs.setBundledOutput("right", 0)
end
if rs.testBundledInput("left", colors.magenta) == false
then rs.setBundledOutput("right", colors.magenta)
elseif rs.testBundledInput("left", colors.magenta) == true
then rs.setBundledOutput("right", 0)
end
end
Basically, it checks if redstone current is applied and if not it send a redstone signal to a lamp. The problem is, the green one doesn't work D: I tried also with the white, nothing happened, any suggestions?
Thanks :P/>/>
P.s. This is in a function, but i don't think that's the problem D: