Advertisement
peptide

peripheral test

May 16th, 2014
261
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.31 KB | None | 0 0
  1. for var, x in pairs (rs.getSides()) do
  2.   if peripheral.isPresent(x) then
  3.     sType = peripheral.getType(x)
  4.     tMethods = peripheral.getMethods(x)
  5.     break
  6.   end
  7. end
  8. -- print("The peripheral type is "..sType)
  9. print("The periph has the following methods")
  10. for x=1, #tMethods do
  11.   print(tMethods[x])
  12. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement