Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function Forward ()
- for i = 1,8 do
- Plant()
- turtle.forward()
- end
- Plant()
- turtle.turnRight()
- turtle.forward()
- turtle.turnRight()
- end
- function Back()
- for i = 1,8 do
- Plant()
- turtle.forward()
- end
- Plant()
- turtle.turnLeft()
- turtle.forward()
- turtle.turnLeft()
- end
- function Count()
- C = turtle.getItemCount(1)
- if C==0 then
- turtle.select(2)
- end
- end
- function Plant()
- Count()
- turtle.placeDown()
- end
- function BackToStart()
- turtle.turnRight()
- for i = 1,9 do
- turtle.forward()
- end
- turtle.turnLeft()
- for i = 1,8 do
- turtle.forward()
- end
- turtle.turnRight()
- turtle.turnRight()
- end
- for g = 1,4 do
- Forward()
- Back()
- end
- Forward()
- BackToStart()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement