Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- side = "back"
- waittimer = 60
- poweron = false
- function sendSignal()
- term.clear()
- term.setCursorPos(1,1)
- print("Control lever is on")
- rs.setOutput(side,true)
- os.sleep(0.5)
- rs.setOutput(side,false)
- print("Waiting")
- sleep(waittimer)
- print("Sending redstone activation signal")
- sleep(1)
- end
- --[[START]]--
- while true do
- if rs.getInput("top",true) then
- poweron = true
- print ("poweron = true")
- sendSignal()
- else
- poweron = false
- term.clear()
- term.setCursorPos(1,1)
- print("Control lever is off")
- sleep(1)
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement