SHARE
TWEET

Untitled

a guest Dec 13th, 2018 53 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.         if i<length do
  24.             turtle.dig()
  25.             turtle.forward()
  26.         end
  27.     end
  28.     for i=1, lenght do
  29.         turtle.back()
  30.     end
  31. 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