Advertisement
alexnolan

pericheck

Mar 26th, 2025 (edited)
281
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.46 KB | None | 0 0
  1. -- Create a diagnostic program
  2. print("Detailed peripheral information:")
  3. for _, name in pairs(peripheral.getNames()) do
  4.     local pType = peripheral.getType(name)
  5.     print(name .. " is type: " .. pType)
  6.    
  7.     -- List all methods available on this peripheral
  8.     print("Available methods:")
  9.     local methods = {}
  10.     for method, _ in pairs(peripheral.getMethods(name)) do
  11.         table.insert(methods, method)
  12.     end
  13.     textutils.tabulate(methods)
  14. end
  15.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement