Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- reactor = peripheral.find("draconic_reactor")
- gate = peripheral.find("flux_gate")
- gate.setOverrideEnabled(true)
- while true do
- term.clear()
- term.setCursorPos(1,1)
- info = reactor.getReactorInfo()
- if (info["status"] == "online") then
- drainRate = info["fieldDrainRate"]
- gate.setFlowOverride(drainRate * 1.4)
- print(drainRate)
- print(drainRate * 1.4)
- end
- os.sleep(0.2)
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement