Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function pushIngredient (ingredientName)
- for i,v in ipairs(chest.list()) do
- print("Index=",i," Value=",v)
- if v.name==ingredientName then
- basin.pullItems("bottom",i,1)
- return
- end
- end
- print("Try restocking, couldn't find ",ingredientName,"!")
- end
- chest=peripheral.wrap("bottom")
- basin=peripheral.wrap("front")
- while true do
- pushIngredient(read())
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement