Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- term.clear()
- term.setCursorPos(1,1)
- i=1
- while i == 1 do
- function reactor()
- A = rs.getInput("back")
- if A == true then
- print("ON")
- else
- print("OFF")
- end
- end
- function coolant()
- B = rs.getInput("left")
- if B == true then
- print("OFF")
- else
- print("ON")
- end
- end
- function uranium()
- C = rs.getInput("right")
- if C == true then
- print("OFF")
- else
- print("ON")
- end
- end
- function uranium2()
- F = rs.getInput("right")
- if F == true then
- rs.setOutput("right",true)
- else
- rs.setOutput("right",false)
- end
- end
- function reactor2()
- D = rs.getInput("back")
- if D == true then
- rs.setOutput("back",true)
- else
- rs.setOutput("back",false)
- end
- end
- function coolant2()
- E = rs.getInput("left")
- if E == true then
- rs.setOutput("left",true)
- else
- rs.setOutput("left",false)
- end
- end
- print("-=Reactor Control V.03=-")
- write(" -Reactor Status: ")
- reactor()
- write(" -Coolant Flow: ")
- coolant()
- write(" -Uranium Refill: ")
- uranium()
- print()
- print("What option would you like to change:")
- print("reactor | coolant | uranium")
- write("Type Option:: ")
- input = read()
- if input =="reactor" then
- reactor2()
- os.restart()
- end
- if input =="coolant"then
- coolant2()
- os.restart()
- end
- if input=="uranium"then
- uranium2()
- os.restart()
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment