ExplodingVortex

Control again

Oct 23rd, 2015
153
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. term.clear()
  2. term.setCursorPos(1,1)
  3.  
  4. print("Base Control")
  5. term.setCursorPos(1,2)
  6. print("Version 1.0")
  7. term.setCursorPos(1,4)
  8. sleep(1)
  9. print("I have 2 Functions, Please Type Farm Or Type Power To Control These sections")
  10.  
  11. input = read()
  12.  
  13. farm = "farm"
  14. power = "power"
  15.  
  16. if input == (farm) then
  17. term.clear()
  18. term.setCursorPos(1,1)
  19. print("Do You want to turn the Farms on or off?")
  20. end
  21.  
  22. input = read()
  23.  
  24. on = "on"
  25. off = "off"
  26.  
  27. if input == (off) then
  28. print("Farms Turning Off")
  29. redstone.setOutput("back", true)
  30. print("Type On when your ready for them to turn back on")
  31. end
  32.  
  33. input = read()
  34.  
  35. on = "on"
  36.  
  37. if input == (on) then
  38. print("Farms Turning On")
  39. redstone.setOutput("back", false)
  40. sleep(1)
  41. os.reboot()
  42. end
  43.  
  44. if input == (power) then
  45. term.clear()
  46. term.setCursorPos(1,1)
  47. print("Do You want to turn the Power on or off?")
  48. end
  49.  
  50. input = read()
  51.  
  52. on = "on"
  53. off = "off"
  54.  
  55. if input == (off) then
  56. print("Power Turning Off")
  57. redstone.setOutput("back", true)
  58. print("Type On when your ready for it to turn back on")
  59. end
  60.  
  61. input = read()
  62.  
  63. on = "on"
  64.  
  65. if input == (on) then
  66. print("Power Turning On")
  67. redstone.setOutput("back", false)
  68. sleep(1)
  69. os.reboot()
  70. end
  71. end
Advertisement
Add Comment
Please, Sign In to add comment