daily pastebin goal
28%
SHARE
TWEET

Untitled

a guest Dec 13th, 2018 57 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. write("length:")
  2. local length = tonumber(read())
  3. write("width:")
  4. local width = tonumber(read())
  5. width=width-1
  6. write("depth:")
  7. local depth = tonumber(read())
  8. for d=1, depth do
  9.     turtle.digDown()
  10.     turtle.down()
  11.     for i=1,length do
  12.         turtle.turnRight()
  13.         for j=1, width do
  14.             turtle.dig()
  15.             turtle.forward()
  16.         end
  17.         turtle.turnRight()
  18.         turtle.turnRight()
  19.         for j=1, width do
  20.             turtle.forward()
  21.         end
  22.         turtle.turnRight()
  23.         turtle.dig()
  24.         turtle.forward()
  25.     end
  26.     for i=1, lenght do
  27.         turtle.back()
  28.     end
  29. 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