Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- i=1
- local function reactor()
- if rs.getOutput("back") == true then
- print("OFF")
- else
- print("ON")
- end
- end
- local function reactor2()
- if rs.getOutput("back") == true then
- rs.setOutput("back",false)
- else
- rs.setOutput("back",true)
- end
- end
- local function coolant()
- if rs.getOutput("left") == true then
- print("OFF")
- else
- print("ON")
- end
- end
- local function coolant2()
- if rs.getOutput("left") == true then
- rs.setOutput("left",false)
- else
- rs.setOutput("left",true)
- end
- end
- local function uranium()
- if rs.getOutput("right") == true then
- print("OFF")
- else
- print("ON")
- end
- end
- local function uranium2()
- if rs.getOutput("right") == true then
- rs.setOutput("right",false)
- else
- rs.setOutput("right",true)
- end
- end
- local function run()
- term.clear()
- term.setCursorPos(1,1)
- while i == 1 do
- textutils.slowPrint("-=Reactor Control V.18=-")
- sleep(1)
- write(" -Reactor Status: ")
- reactor()
- sleep(1)
- write(" -Coolant Flow: ")
- coolant()
- sleep(1)
- write(" -Uranium Refill: ")
- uranium()
- sleep(1)
- print()
- textutils.slowPrint("What option would you like to change::")
- textutils.slowPrint("reactor | coolant | uranium")
- sleep(1)
- write("Type Option: ")
- input = read()
- if input =="reactor" then
- reactor2()
- run()
- else
- if input =="coolant"then
- coolant2()
- run()
- else
- if input=="uranium"then
- uranium2()
- run()
- else
- textutils.slowPrint("Error Please Type One of The Options.")
- sleep(.5)
- run()
- end
- end
- end
- end
- end
- run()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement