Advertisement
Aixler

JustChop

Aug 30th, 2013
64
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.39 KB | None | 0 0
  1. height = 0
  2. function chop()
  3.     turtle.dig()
  4.     turtle.forward()
  5.     while turtle.digUp() do
  6.         turtle.dig()
  7.         turtle.up()
  8.         height = height + 1
  9.     end
  10.     turtle.dig()
  11.     turtle.turnRight()
  12.     turtle.dig()
  13.     turtle.forward()
  14.     turtle.turnLeft()
  15.     for x=1, height do
  16.         turtle.dig()
  17.         turtle.digDown()
  18.         turtle.down()
  19.     end
  20.     turtle.dig()
  21.     print("This tree was ".. height .." blocks tall!")
  22. end
  23.  
  24. chop()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement