xavierlebel

SP_COMP3

Mar 23rd, 2014
43
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. while true do
  2. if rs.testBundledInput("top", colours.red) then
  3. rednet.open("right")
  4. rednet.broadcast("STOP")
  5. sleep(0.1)
  6. rednet.broadcast("000")
  7. end
  8.  
  9. if rs.testBundledInput("top", colours.yellow) then
  10. rednet.open("right")
  11. rednet.broadcast("SP1")
  12. sleep(0.1)
  13. rednet.broadcast("000")
  14. end
  15.  
  16. if rs.testBundledInput("top", colours.purple) then
  17. rednet.open("right")
  18. rednet.broadcast("SP2")
  19. sleep(0.1)
  20. rednet.broadcast("000")
  21. end
  22.  
  23. if rs.testBundledInput("top", colours.blue) then
  24. rednet.open("right")
  25. rednet.broadcast("SP3")
  26. sleep(0.1)
  27. rednet.broadcast("000")
  28. end
  29.  
  30. if rs.testBundledInput("top", colours.green) then
  31. rednet.open("right")
  32. rednet.broadcast("SP4")
  33. sleep(0.1)
  34. rednet.broadcast("000")
  35. end
  36.  
  37. if rs.testBundledInput("top", colours.brown) then
  38. rednet.open("right")
  39. rednet.broadcast("SP5")
  40. sleep(0.1)
  41. rednet.broadcast("000")
  42. end
  43.  
  44. sleep(1)
  45. end
Advertisement
Add Comment
Please, Sign In to add comment