thatparadox

Endergenic Generator - Fire Control

Oct 9th, 2018
124
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. rednet.open("left")
  2.  
  3.  
  4. while true do
  5.   while rs.getInput("right") == false do
  6.     sleep(0.05)
  7.   end
  8.   a,b = rednet.receive("fireControl")
  9.   while rs.getInput("left") do
  10.     rednet.broadcast("fire", "1")
  11.     sleep(0.1) --tick 1
  12.     rednet.broadcast("fire", "2")
  13.     sleep(0.1) --tick 2
  14.     rednet.broadcast("fire", "3")
  15.     sleep(0.1) --tick 3
  16.     rednet.broadcast("fire", "4")
  17.     sleep(0.1) --tick 4
  18.     rednet.broadcast("fire", "5")
  19.     sleep(0.1) --tick 5
  20.     rednet.broadcast("fire", "0")
  21.     sleep(0.1) --tick 10
  22.   end
  23. end
RAW Paste Data