Runeslielo

Untitled

Apr 10th, 2013
101
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. write("Enter Length/Width of Cube: ")
  2. local len = tonumber(read())
  3. local leng = 0
  4. local side = 0
  5. local eoo = 1
  6. local x = 1
  7.  
  8. write("Enter Height of Cube: ")
  9. local hei = tonumber(read())
  10. local heig = 0
  11.  
  12. for heig = 0, hei do
  13.     for i = 1, len do
  14.         for leng = x, len do
  15.             turtle.dig()
  16.             turtle.forward()
  17.         end
  18.         if eoo % 2 == 1 then
  19.             turtle.turnRight()
  20.             turtle.dig()
  21.             turtle.forward()
  22.             turtle.turnRight()
  23.         else
  24.             turtle.turnLeft()
  25.             turtle.dig()
  26.             turtle.forward()
  27.             turtle.turnLeft()
  28.         end
  29.     eoo = eoo + 1
  30.     end
  31.     x = 1
  32.     turtle.digUp()
  33.     turtle.up()
  34.     if len % 2 == 1 then
  35.         turtle.turnRight()
  36.     else
  37.         turtle.turnLeft()
  38.     end
  39. end
Advertisement
Add Comment
Please, Sign In to add comment