Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- rednet.open("top")
- while true do
- repeat
- isNight = false
- day = rs.getAnalogInput("left")
- if day >= 4
- then
- isNight = true
- end
- until isNight == true
- if isNight == true
- then
- repeat
- commandRun = rs.getInput("right")
- if commandRun
- then
- print("It works")
- end
- until commandRun == true
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment