iconmaster

material-stocker

Jun 8th, 2013
202
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.29 KB | None | 0 0
  1. need = {1,12,30216}
  2. amt  = {256,256,64}
  3.  
  4. ae = peripheral.wrap("front")
  5.  
  6. while true do
  7.     list = ae.listItems()
  8.     for i=1,#need do
  9.         if list[need[i]] < amt[i] then
  10.             print("Crafting "..amt[i]-list[need[i]].." of "..need[i])
  11.             ae.craft(need[i],amt[i]-list[need[i]])
  12.         end
  13.     end
  14.     sleep(60)
  15. end
Advertisement
Add Comment
Please, Sign In to add comment