unli

farm

Nov 15th, 2012
63
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.80 KB | None | 0 0
  1. pulse = 2
  2. m = 24
  3. c = 8
  4.  
  5. function reset()
  6. for i = 1, m do
  7. rs.setBundledOutput("back", colors.white)
  8. sleep(0.2)
  9. rs.setBundledOutput("back", colors.pink)
  10. sleep(0.8)
  11. end
  12. end
  13.  
  14. function plant()
  15. for i = 1, m do
  16. rs.setBundledOutput("back", colors.yellow)
  17. sleep(pulse)
  18. rs.setBundledOutput("back", colors.black)
  19. sleep(pulse)
  20. rs.setBundledOutput("back", colors.orange)
  21. sleep(pulse)
  22. end
  23. end
  24.  
  25. function refill()
  26. for i = 1, c do
  27. rs.setBundledOutput("back", colors.red)
  28. sleep(0.3)
  29. rs.setBundledOutput("back", colors.pink)
  30. sleep(0.2)
  31. end
  32. sleep(20)
  33. end
  34.  
  35. function send()
  36. for i = 1, c do
  37. rs.setBundledOutput("back", colors.lime)
  38. sleep(0.3)
  39. rs.setBundledOutput("back", colors.pink)
  40. sleep(0.2)
  41. end
  42. end
  43.  
  44. reset()
  45. refill()
  46. plant()
  47. reset()
  48. refill()
  49. send()
Advertisement
Add Comment
Please, Sign In to add comment