Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function doFrame()
- if not(turtle.suck()) then
- findNextFrame()
- end
- turtle.drop()
- end
- function findNextFrame()
- for i=1,16 do
- if turtle.getItemCount(i)>0 then
- turtle.select(i)
- return
- end
- end
- end
- function restock()
- for _=1,8 do
- turtle.suckUp()
- end
- turtle.select(1)
- end
- if turtle.detect() then
- turtle.turnRight()
- end
- while true do
- if turtle.detectUp() then
- restock()
- end
- turtle.turnLeft()
- if (turtle.detect()) then
- doFrame()
- turtle.turnRight()
- turtle.forward()
- else
- turtle.forward()
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment