Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --requires 5 endergenic generators (optimal)
- RSOutput = "right" --next computer side
- RSInput ="left" --previous computer side
- starter = false --set one computer to true
- starterInput = "front" --ignore unless starter. Side for RS input to start generator
- while true do
- if starter then
- while rs.getInput(starterInput) == false do
- sleep(0.05)
- firstLoop = true
- end
- end
- if firstLoop then
- rs.setOutput(RSOutput, true)
- sleep(.1)
- rs.setOutput(RSOutput, false) --Notification to next computer sent
- sleep(.05)
- rs.setOutput("top", true)
- sleep(.05)
- rs.setOutput("top",false) --set to receive
- sleep(.25) --.25 will arrive at 2nd gen at 10 ticks
- rs.setOutput("left",true)
- sleep(0.05)
- rs.setOutput("left", false)
- firstLoop = false
- end
- if rs.getInput(RSInput) then
- rs.setOutput("top", true)
- rs.setOutput(RSOutput, true)
- sleep(.05)
- rs.setOutput("top",false) --pearl fired
- sleep(.05)
- rs.setOutput(RSOutput, false) --Notification to next computer sent
- sleep(.05)
- rs.setOutput("top", true)
- sleep(.05)
- rs.setOutput("top",false) --set to receive
- end
- sleep(.05)
- end
Add Comment
Please, Sign In to add comment