Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- os.loadAPI("move")
- run = true
- counter = 0
- while run == true do
- counter = counter +1
- faceInit = true
- if turtle.detect == false then
- turtle.forward(1)
- turtle.inspectDown()
- else if faceInit == true
- turtle.turnLeft()
- turtle.forward()
- turtle.turnLeft()
- turtle.inspectDown()
- faceInit = false
- else if faceInit == false
- turtle.turnRight()
- turtle.forward()
- turtle.turnRight()
- turtle.inspectDown()
- faceInit = true
- local success, data = turtle.inspectDown()
- if success then
- cropAge = data.state.age
- print(cropAge)
- end
- if cropAge == 7 then
- turtle.digDown()
- turtle.select(2)
- turtle.placeDown()
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement