Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- term.clear()
- term.setCursorPos(1,1)
- print("Base Control")
- term.setCursorPos(1,2)
- print("Version 1.0")
- term.setCursorPos(1,4)
- sleep(1)
- print("I have 2 Functions, Please Type Farm Or Type Power To Control These sections")
- input = read()
- farm = "farm"
- power = "power"
- if input == (farm) then
- term.clear()
- term.setCursorPos(1,1)
- print("Do You want to turn the Farms on or off?")
- end
- input = read()
- on = "on"
- off = "off"
- if input == (off) then
- print("Farms Turning Off")
- redstone.setOutput("back", true)
- print("Type On when your ready for them to turn back on")
- end
- input = read()
- on = "on"
- if input == (on) then
- print("Farms Turning On")
- redstone.setOutput("back", false)
- sleep(1)
- os.reboot()
- end
- if input == (power) then
- term.clear()
- term.setCursorPos(1,1)
- print("Do You want to turn the Power on or off?")
- end
- input = read()
- on = "on"
- off = "off"
- if input == (off) then
- print("Power Turning Off")
- redstone.setOutput("back", true)
- print("Type On when your ready for it to turn back on")
- end
- input = read()
- on = "on"
- if input == (on) then
- print("Power Turning On")
- redstone.setOutput("back", false)
- sleep(1)
- os.reboot()
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment