Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- flowGates = {}
- inputFlux = nil
- outputFlux = nil
- reactor = nil
- local deviceList = peripheral.getNames()
- for i = 1, #deviceList do
- local device = peripheral.getType(deviceList[i])
- if device == "flow_gate" then
- table.insert(flowGates, deviceList[i])
- elseif device == "draconic_reactor" then
- reactor = peripheral.wrap(deviceList[i])
- elseif device == "monitor" then
- mon = peripheral.wrap(deviceList[i])
- end
- print(device)
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement