Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local alarm = os.setAlarm(17.55)
- while true do
- local evt, arg = os.pullEvent("alarm")
- if arg == alarm then
- print("Nighttime, turning on.")
- redstone.setOutput("back", true)
- redstone.setOutput("right", true)
- sleep(606)
- print ("Daytime, turning off.")
- redstone.setOutput("back", false)
- redstone.setOutput("right", false)
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement