Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- meal=16
- sapp=15
- function digForward(c)
- for i=1,c do
- turtle.dig()
- turtle.forward()
- end
- end
- function digArea()
- digForward(2)
- turtle.turnRight()
- digForward(2)
- turtle.turnRight()
- digForward(4)
- turtle.turnRight()
- digForward(4)
- turtle.turnRight()
- digForward(4)
- turtle.turnRight()
- digForward(1)
- turtle.turnRight()
- digForward(3)
- turtle.turnLeft()
- digForward(2)
- turtle.turnLeft()
- digForward(1)
- turtle.turnLeft()
- digForward(1)
- turtle.turnRight()
- end
- while true do
- turtle.select(sapp)
- if turtle.getItemCount()==0 then
- turtle.back()
- turtle.turnRight()
- turtle.suck()
- turtle.turnLeft()
- turtle.forward()
- end
- turtle.select(sapp)
- if turtle.compare() then
- turtle.select(meal)
- if turtle.getItemCount()==0 then
- turtle.back()
- turtle.turnLeft()
- turtle.suck()
- turtle.turnRight()
- turtle.forward()
- end
- turtle.place()
- elseif turtle.detect() then
- turtle.dig()
- turtle.forward()
- for i=1,9 do
- turtle.select(1)
- detect=turtle.compareUp()
- turtle.select(sapp)
- turtle.digUp()
- turtle.up()
- if i>1 and i<8 and detect and turtle.detect() then
- digArea()
- end
- end
- for i=1,9 do
- turtle.down()
- end
- turtle.back()
- turtle.back()
- turtle.turnLeft()
- turtle.turnLeft()
- turtle.select(1)
- turtle.drop()
- turtle.turnLeft()
- turtle.turnLeft()
- turtle.forward()
- else
- turtle.place()
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement