Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local input = peripheral.wrap("top")
- function craftAndTrade()
- turtle.transferTo(2, 9)
- turtle.transferTo(6, 9)
- turtle.craft()
- turtle.drop()
- end
- while true do
- local item = input.getItemDetail(1)
- if(item ~= nil and item.count > 17) then
- turtle.suckUp(18)
- craftAndTrade()
- end
- os.sleep(2)
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement