Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- need = {1,12,30216}
- amt = {256,256,64}
- ae = peripheral.wrap("front")
- while true do
- list = ae.listItems()
- for i=1,#need do
- if list[need[i]] < amt[i] then
- print("Crafting "..amt[i]-list[need[i]].." of "..need[i])
- ae.craft(need[i],amt[i]-list[need[i]])
- end
- end
- sleep(60)
- end
Advertisement
Add Comment
Please, Sign In to add comment