Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local component=require("component")
- local rsinput=component.proxy("e3795eb8-753f-4530-8157-f2e692e11b21")
- local rsinputfusion=component.proxy("7714c882-4651-4f01-a306-bb560c526c5e")
- local rsoutput=component.proxy("a9ff500a-f372-4fca-99d0-496b74aa8e60")
- local rssignal=component.proxy("5c07405d-6d34-457c-b3b0-82786ec47554")
- local gpu=component.gpu
- local text=require("text")
- local term=require("term")
- local computer=require("computer")
- local os=require("os")
- local sides=require("sides")
- local firstmsg="Awaiting..."
- --Code--
- while true do
- if rsinput.getInput(sides.top)==15 or rsinput.getInput(sides.top)==0 then
- while true do
- term.clear()
- gpu.set(1,1,firstmsg)
- if rsinput.getInput(sides.top)==15 then --reactor 1 online
- rsoutput.setOutput(sides.right,15)
- term.clear()
- gpu.set(1,2,"Signal Received")
- else if rsinput.getInput(sides.top)==0 then --reactor 1 offline
- rsoutput.setOutput(sides.right,0)
- end
- end
- end
- else if rsinput.getInput(sides.back)==15 or rsinput.getInput(sides.back)==0 then
- while true do
- if rsinput.getInput(sides.back)==15 then --reactor 2 online
- rsoutput.setOutput(sides.front,15)
- else if rsinput.getInput(sides.back)==0 then --reactor 2 offline
- rsoutput.setOutput(sides.front,0)
- end
- end
- end
- else if rsinput.getInput(sides.front)==15 or rsinput.getInput(sides.front)==0 then
- while true do
- if rsinput.getInput(sides.front)==15 then -- reactor 3 online
- rsoutput.setOutput(sides.top,15)
- else if rsinput.getInput(sides.front)==0 then -- reactor 3 offline
- rsoutput.setOutput(sides.top,0)
- end
- end
- end
- else if rsinput.getInput(sides.left)==15 or rsinput.getInput(sides.left)==0 then
- while true do
- if rsinput.getInput(sides.left)==15 then -- reactor 4 online
- rsoutput.setOutput(sides.left,15)
- else if rsinput.getInput(sides.left)==0 then -- reactor 4 offline
- rsoutput.setOutput(sides.left,0)
- end
- end
- end
- end
- end
- end
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement