Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- Create a diagnostic program
- print("Detailed peripheral information:")
- for _, name in pairs(peripheral.getNames()) do
- local pType = peripheral.getType(name)
- print(name .. " is type: " .. pType)
- -- List all methods available on this peripheral
- print("Available methods:")
- local methods = {}
- for method, _ in pairs(peripheral.getMethods(name)) do
- table.insert(methods, method)
- end
- textutils.tabulate(methods)
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement