Damaged

Crafter

Aug 19th, 2014
323
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.42 KB | None | 0 0
  1.  
  2. local aeNetwork = peripheral.wrap("top")
  3. local fuzzyExport = peripheral.wrap("front")
  4.  
  5. while true do
  6.    for i,data in pairs(fuzzyExport.getAllStacks()) do
  7.       for j=1,1024
  8.          while aeNetwork.countOfItemType(data["id"], j) > 0 do
  9.             pcall( function () return aeNetwork.extractItem({ ["id"] = data["id"], ["dmg"] = j, ["qty"] = 64 }, "west") end )
  10.          end
  11.       end
  12.    end
  13.    sleep(1)
  14. end
Advertisement
Add Comment
Please, Sign In to add comment