SHARE
TWEET

mine

a guest Oct 21st, 2019 72 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. term.write("Enter height: ")
  2. h = read()
  3. term.write("Enter width: ")
  4. w = read()
  5. term.write("Enter length: ")
  6. l = 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(z > 1 and x < l)
  16.       then
  17.         turtle.forward()
  18.       end
  19.     end
  20.     if(alt % 2 == 0)
  21.     then
  22.       turtle.turnLeft()
  23.       turtle.dig()
  24.       turtle.forward()
  25.       turtle.turnLeft()
  26.     else
  27.       turtle.turnRight()
  28.       turtle.dig()
  29.       turtle.forward()
  30.       turtle.turnRight()
  31.     end
  32.   end
  33.   if(turtle.detectDown())
  34.   then
  35.     turtle.digDown()
  36.   end
  37.   turtle.down()
  38. 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