doublequestionmark

GetMethods(cc)

Sep 14th, 2013
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.36 KB | None | 0 0
  1. local side = ...
  2. function getMethods( side )
  3. meths = peripheral.getMethods( side )
  4. for k,v in pairs(meths) do
  5. print(k..":"..v)
  6. end
  7. end
  8.  
  9. if side == nil then
  10. print("Method Machine:")
  11. print("")
  12. print("Enter the side that the peripheral is on, or the name of the peripheral on the network.")
  13. side = read()
  14. end
  15.  
  16. getMethods( side )
Add Comment
Please, Sign In to add comment