Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- c1 = "container_chest_0"
- c2 = "iron_1"
- c3 = "container_chest_2"
- c4 = "container_chest_3"
- c5 = "container_chest_4"
- inv1 = peripheral.wrap(c1)
- inv2 = peripheral.wrap(c2)
- inv3 = peripheral.wrap(c3)
- inv4 = peripheral.wrap(c4)
- inv5 = peripheral.wrap(c5)
- size1 = inv1.getInventorySize()
- size2 = inv2.getInventorySize()
- size3 = inv3.getInventorySize()
- size4 = inv4.getInventorySize()
- size5 = inv5.getInventorySize()
- --net = peripheral.wrap("back")
- --help = net.callRemote("container_chest_0","listMethods")
- --print(help)
- --print(size1)
- for i = 1, size3, 1 do
- local tbl3 = inv3.getStackInSlot(i)
- if tbl3 ~= nil then
- for key, value in pairs(tbl3) do
- print(key .. " = " .. tostring(value))
- end
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement