SHARE
TWEET

mine

a guest Oct 21st, 2019 67 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. term.write("Enter height+1: ")
  2. h = read()
  3. term.write("Enter width-1: ")
  4. w = read()
  5. term.write("Enter length: ")
  6. l = tonumber(read())
  7. for y = 1,h,1 do
  8.   for z = 1,w,1 do
  9.     alt = -1+z
  10.     for x = 1,l,1 do
  11.       if(turtle.detect())
  12.       then
  13.         turtle.dig()
  14.       end
  15.       if(turtle.detectUp())
  16.       then
  17.         turtle.digUp()
  18.       end
  19.       if((z > 1 and x < l) or (z == 1))
  20.       then
  21.         turtle.forward()
  22.       end
  23.     end
  24.     if(alt % 2 == 0)
  25.     then
  26.       turtle.turnLeft()
  27.       turtle.dig()
  28.       turtle.forward()
  29.       turtle.turnLeft()
  30.     else
  31.       turtle.turnRight()
  32.       turtle.dig()
  33.       turtle.forward()
  34.       turtle.turnRight()
  35.     end
  36.   end
  37.   if(turtle.detectDown())
  38.   then
  39.     turtle.digDown()
  40.   end
  41.   turtle.down()
  42. 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
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top