Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- while true do
- t=60
- if rs.getOutput("right") == false then
- for i=1, 60 do
- local monitor = peripheral.wrap("left")
- term.clear()
- term.setCursorPos(1, 1)
- print(t .." minutes left")
- monitor.clear()
- monitor.setTextScale(4)
- monitor.setCursorPos(1, 1)
- monitor.write(t)
- monitor.setCursorPos(1, 2)
- monitor.write("minutes")
- monitor.setCursorPos(1, 3)
- monitor.write("left")
- t=t-1
- sleep(60)
- if t == 0 then
- rs.setOutput("right", true)
- end
- end
- else
- for i=1, 5 do
- rs.setOutput("top", true)
- sleep(1)
- rs.setOutput("top", false)
- sleep(1)
- end
- sleep(250)
- rs.setOutput("right", false)
- t = 60
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement