Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- craftingSlots = {1,2,3,5,7,9,10,11}
- function getColor(howMany)
- turtle.select(6)
- turtle.turnLeft()
- turtle.suck(howMany)
- turtle.turnRight()
- turtle.select(16)
- end
- function craftCobble()
- if turtle.getItemDetail(6) then
- print("have some color left")
- local amount = turtle.getItemDetail(6).count
- turtle.getColor(8-amount)
- else
- getColor(8)
- print("getting paint")
- end
- for k,v in pairs(craftingSlots) do
- turtle.select(v)
- turtle.suck(8 - turtle.getItemCount())
- end
- turtle.select(16)
- turtle.craft()
- end
- while true do
- if turtle.getItemDetail(16) then
- turtle.select(16)
- turtle.dropDown()
- else
- craftCobble()
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement