Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local nightTime
- function init()
- while true do
- rs.setOutput('top', not isNight())
- sleep(5000)
- end
- end
- function isNight()
- local currentTime = os.time()
- if ( currentTime >= 18.541 or currentTime <= 6 ) then
- return true
- end
- return false
- end
- init()
Advertisement
Add Comment
Please, Sign In to add comment