carrots084

Untitled

Jan 26th, 2018
185
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.34 KB | None | 0 0
  1. rednet.open("top")
  2.  
  3. while true do
  4. repeat
  5. isNight = false
  6. day = rs.getAnalogInput("left")
  7. if day >= 4
  8. then
  9. isNight = true
  10. end
  11. until isNight == true
  12. if isNight == true
  13. then
  14. repeat
  15. commandRun = rs.getInput("right")
  16. if commandRun
  17. then
  18. print("It works")
  19. end
  20. until commandRun == true
  21. end
  22. end
Advertisement
Add Comment
Please, Sign In to add comment