Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --jet = peripheral.wrap("left")
- --for k,v in pairs(jet) do print(k) end
- modem = peripheral.wrap("left")
- name = modem.getNamesRemote()
- turbine = {}
- cell = {}
- tCount = 0
- cCount = 0
- for i = 1 , #name, 1 do
- p = peripheral.wrap(name[i])
- if name[i]:match 'BigReactor' then
- tCount = tCount + 1
- turbine[tCount] = p
- else
- cCount = cCount + 1
- cell[cCount] = p
- end
- end
- print(tCount," Turbines, ",cCount," Reactor connected.")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement