Advertisement
Guest User

Method Finder - CC

a guest
Apr 26th, 2015
208
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.30 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