Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- delay=0
- function plant()
- if seedExists then
- if seed.metadata==7 then
- turtle.digDown()
- turtle.placeDown()
- end
- else
- turtle.placeDown()
- end
- end
- while true do
- seedExists,seed=turtle.inspectDown()
- plant()
- if turtle.detect() then
- turtle.turnRight()
- turtle.turnRight()
- while turtle.detect()==false do
- turtle.forward()
- end
- turtle.turnRight()
- if turtle.detect() then
- turtle.turnRight()
- turtle.turnRight()
- while turtle.detect()==false do
- turtle.forward()
- end
- turtle.turnRight()
- turtle.turnRight()
- end
- turtle.forward()
- plant()
- turtle.turnRight()
- end
- turtle.forward()
- sleep(delay)
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement