Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local count = 0
- while true do
- turtle.select(1)
- if turtle.getItemCount(1) > 0 then
- turtle.place()
- else
- print("Out of Saplings")
- break
- end
- turtle.select(2)
- if turtle.getItemCount(2) > 0 then
- turtle.place()
- else
- print("Out of Bonemeal")
- break
- end
- turtle.select(1)
- turtle.dig()
- turtle.forward()
- local height = 0
- while turtle.detectUp() do
- turtle.digUp()
- turtle.up()
- height = height + 1
- end
- repeat
- turtle.down()
- height = height - 1
- until height == 0
- turtle.back()
- count = count + 1
- print("Cut down "..count.." trees")
- end
Advertisement
Add Comment
Please, Sign In to add comment