Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function moveDetect()
- blockInFront = turtle.detect()
- if blockInFront == false then
- turtle.forward(1)
- end
- end
- --moveDetect()
- function plant()
- local success, data = turtle.inspectDown()
- if success then
- cropAge = data.state.age
- print(cropAge)
- if cropAge == 7 then
- turtle.digDown()
- turtle.select(2)
- turtle.placeDown()
- end
- end
- end
- --plant()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement