Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- m=peripheral.wrap("front")
- t="Day"
- side="back"
- while true do
- if os.time()<=18.5 and os.time()>=6.0 and t=="Night" then
- t="Day"
- rs.setOutput(side,true)
- sleep(1)
- rs.setOutput(side,false)
- end
- if os.time()<=6.0 and os.time()>=18.5 and t=="Day" then
- t="Night"
- rs.setOutput(side,true)
- sleep(1)
- rs.setOutput(side,false)
- end
- sleep(1)
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement