Advertisement
neuroticfox

Untitled

Jul 2nd, 2023 (edited)
114
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.45 KB | None | 0 0
  1. flowGates = {}
  2. inputFlux = nil
  3. outputFlux = nil
  4. reactor = nil
  5. local deviceList = peripheral.getNames()
  6. for i = 1, #deviceList do
  7. local device = peripheral.getType(deviceList[i])
  8. if device == "flow_gate" then
  9. table.insert(flowGates, deviceList[i])
  10. elseif device == "draconic_reactor" then
  11. reactor = peripheral.wrap(deviceList[i])
  12. elseif device == "monitor" then
  13. mon = peripheral.wrap(deviceList[i])
  14. end
  15. print(device)
  16. end
  17.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement