Advertisement
leons1999

Flux_Gate

Feb 25th, 2016
91
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. reactor = peripheral.find("draconic_reactor")
  2. gate = peripheral.find("flux_gate")
  3. gate.setOverrideEnabled(true)
  4.  
  5. while true do
  6.   term.clear()
  7.   term.setCursorPos(1,1)  
  8.   info = reactor.getReactorInfo()
  9.  
  10.   if (info["status"] == "online") then
  11.     drainRate = info["fieldDrainRate"]
  12.     gate.setFlowOverride(drainRate * 1.4)
  13.     print(drainRate)
  14.     print(drainRate * 1.4)
  15.  
  16.   end
  17.  
  18.  
  19.   os.sleep(0.2)
  20. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement