Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- height = 0
- function chop()
- turtle.dig()
- turtle.forward()
- while turtle.digUp() do
- turtle.dig()
- turtle.up()
- height = height + 1
- end
- turtle.dig()
- turtle.turnRight()
- turtle.dig()
- turtle.forward()
- turtle.turnLeft()
- for x=1, height do
- turtle.dig()
- turtle.digDown()
- turtle.down()
- end
- turtle.dig()
- print("This tree was ".. height .." blocks tall!")
- end
- chop()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement