Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- mon = peripheral.wrap("back")
- bedTime = false
- mon.setTextScale(3)
- term.redirect(mon)
- while true do
- mon.clear()
- mon.setCursorPos(1,1)
- --write(os.time())
- write(textutils.formatTime(os.time(),true))
- sleep(1)
- if os.time() > 19 and not bedTime then
- rs.setBundledOutput("bottom",0)
- sleep(1)
- for i = 1, 2 do
- rs.setBundledOutput("bottom", colours.combine(rs.getBundledOutput("bottom"), colours.black))
- sleep(1)
- rs.setBundledOutput("bottom",colours.subtract(rs.getBundledOutput("bottom"), colours.black))
- sleep(1)
- end
- bedTime = true
- elseif os.time() > 6 and os.time() < 19 and bedTime then
- for i = 1, 2 do
- rs.setBundledOutput("bottom",colours.combine(rs.getBundledOutput("bottom"), colours.lightBlue))
- sleep(1)
- rs.setBundledOutput("bottom",0)
- sleep(1)
- end
- rs.setBundledOutput("bottom",colours.orange)
- bedTime = false
- elseif os.time() > 6 and os.time() < 19 and not colours.test(rs.getBundledOutput("bottom"), colours.orange) then
- bedTime = false
- rs.setBundledOutput("bottom",colours.orange)
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement