View difference between Paste ID: qP6pEM0X and raXL77f7
SHOW: | | - or go back to the newest paste.
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