Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local input = peripheral.wrap("left")
- local output = peripheral.wrap("bottom")
- function craftAndPush()
- input.pushItems("front", 1, 1)
- turtle.suck(1)
- turtle.transferTo(6, 1)
- input.pushItems("front", 2, 1)
- turtle.suck(1)
- turtle.craft()
- turtle.dropDown()
- end
- while true do
- local inputList = input.list()
- if(#inputList < 2) then
- os.exit()
- end
- local outputItem = output.getItemDetail(1)
- if(outputItem == nil) then
- craftAndPush()
- end
- os.sleep(2)
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement