Bimgo

CC-diagnostic peripheral

Jan 1st, 2020
683
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.26 KB | None | 0 0
  1. local periList = peripheral.getNames()
  2.  
  3. term.clear()
  4.  
  5. textutils.slowPrint("Diagnostic peripheral.wrap on ["..os.computerLabel().."]")
  6.  
  7. for i = 1, #periList do
  8.     print("I have a "..peripheral.getType(periList[i]).." attached as \""..periList[i].."\".")
  9. end
Add Comment
Please, Sign In to add comment