Guest User

catalogue

a guest
Feb 12th, 2014
296
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.37 KB | None | 0 0
  1. local c = peripheral.wrap("left")
  2. local a = peripheral.wrap("bottom")
  3. local beans = {}
  4.  
  5. function scanSlot(slot)
  6.     c.pushItem("south", slot,1)
  7.     turtle.dropDown()
  8.     data = a.getAspects()
  9. --    for i,j in pairs(data) do
  10.        print(data)
  11. --    end
  12.     turtle.suckDown()
  13.     c.pullItemIntoSlot("south", 1, 1,slot)
  14. end  
  15.  
  16. for i = 1,5 do
  17.    scanSlot(i)
  18. end
Advertisement
Add Comment
Please, Sign In to add comment