Posted 24 August 2013 - 11:55 PM
So I followed 2 guides today for doors and alarms, after that, I tried to make a light switcher in my pc connecting redstone in redstone lamps across my house. I'm totally new to this,made the code myself alone and I can't spot the error in my code, can someone help ?
It doesn't show any error messages or anything, just don't send the redstone signal
Thanks in advance!
And the redstone wiring is correct, I tried with levers and it worked
Spoiler
term.clear()
term.setCursorpos(1, 1)
print"Do you want to turn the lights on or off?"
input = read()
if input==(on) then
print"Lights are ON"
redstone.setOutput("back", true)
end
if input==(off) then
print "Lights are OFF"
redstone.setOutput("back", false)
sleep(3)
os.shutdown()
end
It doesn't show any error messages or anything, just don't send the redstone signal
Thanks in advance!
And the redstone wiring is correct, I tried with levers and it worked