Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- items = peripheral.getNames()
- for posID,perip in pairs(items) do
- print("PositionID: " .. posID .. ", Name: " .. perip .. ", Type: " .. peripheral.getType(perip))
- print("Methods:")
- methods = peripheral.getMethods(perip)
- for funcID,funcName in pairs(methods) do
- print("ID: " .. posID .. ", Name: " .. funcName)
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement