Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- readout = "Awaiting time shift."
- function clear()
- term.clear()
- term.setCursorPos(1,1)
- end
- while true do
- local ntime = os.time()
- print("Time: "....textutils.formatTime( nTime, false ))
- if (ntime>5.59) and (ntime<18.00) then
- redstone.setOutput("back", false)
- print("Lights off.")
- elseif (ntime<6.00) and (ntime>17.59) then
- redstone.setOutput("back", true)
- print("Lights on.")
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement