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")
- input = read()
- farms = "farm"
- power - "power"
- if input == (farm) then
- term.clear()
- term.setCursorPos(1,1)
- print("Do You want to turn the Farms Off?")
- input = read()
- yes = "yes"
- no = "no"
- if input == (yes) then
- print("Well alrighty!")
- redstone.setOutput("back", true)
- end
- if input == (no) then
- print("Ok, I will still be here.")
- sleep(3)
- os.reboot()
- end
- if input == (power) then
- 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)
- end
- if input == (off) then
- print("Power turning of!")
- redstone.setOutput("top", true)
- sleep(1)
- os.reboot()
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment