luckdemon

1x1 tree cut

Oct 25th, 2013
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.20 KB | None | 0 0
  1. -- TreeCut 1x1
  2.  
  3. turtle.dig()
  4. turtle.forward()
  5. height = 0
  6.  
  7. while turtle.detectUp() do
  8.     turtle.digUp()
  9.     turtle.up()
  10.     height = height + 1
  11.     end
  12.    
  13. for i=1,height do
  14. turtle.down()
  15. end
Advertisement
Add Comment
Please, Sign In to add comment