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("What would you like me to Help with?")
- term.setCursorPos(1,6)
- sleep(1)
- print("Type Farm to control the Farms")
- term.setCursorPos(1,7)
- sleep(1)
- print("Type Power to control the Power")
- 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?")
- input = read()
- on = "on"
- off = "off"
- if input == (off) then
- print("Farms Turning Off")
- redstone.setOutput("back", true)
- sleep(3)
- os.reboot()
- end
- if input == (on) then
- print("Farms Turning On")
- redstone.setOutput("back", false)
- sleep(3)
- os.reboot()
- end
- end
- if input == (power) then
- term.clear()
- term.setCursorPos(1,1)
- print("Do you want to turn the power on or off?")
- input = read()
- on = "on"
- off = "off"
- if input == (on) then
- print("Power is going on!")
- redstone.setOutput("top", false)
- sleep(3)
- os.reboot()
- end
- if input == (off) then
- print("Power turning of!")
- redstone.setOutput("top", true)
- sleep(3)
- os.reboot()
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment