Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local modem = peripheral.find("modem")
- term.clear()
- term.setCursorPos(1,1)
- print("Refined Oil Processing")
- print("-=-=-=-=-=-=-=-=-=-")
- while rs.getInput("top") == false
- do
- local loilref = rs.getInput("left")
- local bitpro = rs.getInput("right")
- local hoilref = rs.getInput("back")
- term.clearLine()
- print("Bitumen Processing")
- if bitpro == false
- then
- modem.transmit(16,5,"Offline")
- print("Offline")
- end
- if bitpro == true
- then
- modem.transmit(16,5,"Online")
- print("Online")
- end
- print("Light Oil Refining")
- if loilref == false
- then
- modem.transmit(17,5,"Offline")
- print("Offline")
- end
- if loilref == true
- then
- modem.transmit(17,5,"Online")
- print("Online")
- end
- print("Heavy Oil Refining")
- if hoilref == false
- then
- modem.transmit(18,5,"Offline")
- print("Offline")
- end
- if hoilref == true
- then
- modem.transmit(18,5,"Online")
- print("Online")
- end
- sleep(1)
- term.setCursorPos(1,3)
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement