SHARE
TWEET

Untitled

a guest Dec 2nd, 2019 75 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. while true do
  2.     if turtle.compare(2) then
  3.         turtle.select(1)
  4.         turtle.place()
  5.  
  6.         turtle.dig()
  7.         turtle.forward();
  8.         -- Dig up and count tree height to get back to ground
  9.         local height = 0
  10.         while turtle.inspectUp() do
  11.             turtle.digUp()
  12.             turtle.up()
  13.             height = height + 1
  14.         end
  15.        
  16.         -- Get back to ground
  17.         for i = 0, height, 1 do
  18.             turtle.down()
  19.         end
  20.  
  21.         -- Move back
  22.         turtle.back()
  23.     end
  24. end
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top