kreezxil

read tinkers

May 15th, 2017
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. peripheral.wrap("left")
  2.  
  3. smeltery = peripheral.wrap("tconstruct_smelterydrain_0")
  4.  
  5. print(smeltery.listMethods())
  6. a = smeltery.getTankInfo("unknown")
  7.  
  8. --print(a[1][[capacity][]])  This was me trying to print the capacity
  9.  
  10. --printing the first layer of tables
  11. if a[1]["rawName"] then
  12.   print(a[1]["rawName"])
  13.   print(a[1]["amount"])
  14. end
  15.  
  16. for k,v in pairs (a) do
  17.   for x,y in pairs(v) do
  18.     print(x.." : "..y)
  19.   end
  20. end
Add Comment
Please, Sign In to add comment