Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function harvest()
- turtle.select(1)
- local success, data = turtle.inspect()
- wood = data.name
- print(wood)
- while turtle.detect() do
- turtle.dig()
- end
- turtle.forward()
- while true do
- local success, data = turtle.inspectUp()
- if data.name == wood then
- turtle.digUp()
- turtle.up()
- else
- break
- end
- end
- while not turtle.detectDown() do
- turtle.down()
- end
- turtle.back()
- end
Advertisement
Add Comment
Please, Sign In to add comment