Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- sides={"left","right","top","bottom","front","back"}
- for i,side in ipairs(sides) do
- if peripheral.isPresent(side) then
- print("side: "..side)
- print("\ttype = "..peripheral.getType(side))
- print("\tmethods:")
- methods=""
- for i,method in ipairs(peripheral.getMethods(side)) do
- if i>0 then
- methods=methods..", "
- end
- methods=methods..method
- end
- print(methods)
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement