Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function newRow(dist)
- for i=0,dist,1 do
- turtle.back()
- end
- turtle.turnLeft()
- turtle.forward()
- turtle.turnRight()
- end
- function farm(dist)
- for i=0,dist,1 do
- turtle.forward()
- success,data=turtle.inspectDown()
- if data.metadata == 7 then
- turtle.digDown()
- turtle.suckDown(40)
- turtle.placeDown()
- end
- end
- end
- function restart(dist)
- turtle.turnRight()
- for i=0,dist do
- print("Moving forward 1...")
- turtle.forward()
- end
- turtle.turnLeft()
- turtle.placeDown()
- end
- for i=0,8 do
- farm(8)
- newRow(8)
- print("Lopping once...")
- end
- restart(8)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement