Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function turbineSearch()
- local names = peripheral.getNames()
- local i, name
- for i, name in pairs(names) do
- if peripheral.getType(name) == "BigReactors-Reactor" then
- return peripheral.wrap(name)
- else
- print ("No Turbine Found!")
- end
- end
- end
- turbineWrap = turbineSearch()
- local turbineName = peripheral.getType(turbineWrap)
- print ("Wrapped Turbine: " ..turbineName)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement