Advertisement
Guest User

invCheck

a guest
Jan 13th, 2014
41
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.70 KB | None | 0 0
  1. c1 = "container_chest_0"
  2. c2 = "iron_1"
  3. c3 = "container_chest_2"
  4. c4 = "container_chest_3"
  5. c5 = "container_chest_4"
  6.  
  7. inv1 = peripheral.wrap(c1)
  8. inv2 = peripheral.wrap(c2)
  9. inv3 = peripheral.wrap(c3)
  10. inv4 = peripheral.wrap(c4)
  11. inv5 = peripheral.wrap(c5)
  12.  
  13. size1 = inv1.getSizeInventory()
  14. size2 = inv2.getSizeInventory()
  15. size3 = inv3.getSizeInventory()
  16. size4 = inv4.getSizeInventory()
  17. size5 = inv5.getSizeInventory()
  18.  
  19. net = peripheral.wrap("back")
  20.  
  21. help = net.callRemote("container_chest_0","listMethods")
  22.  
  23. print(help)
  24.  
  25. print(size1)
  26. --for i = 1, size1, 1 do
  27. -- local tbl1 = chest.getStackInSlot(i)
  28. -- for key, value in pairs(tbl1) do
  29. --  print(key .. " = " .. tostring(value))
  30. -- end
  31. --end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement