Advertisement
Ubidibity

base1

Aug 27th, 2014
370
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.88 KB | None | 0 0
  1. -- 20140827 first draft, untested
  2.  
  3. wid=13
  4. flip=0
  5. slot=1
  6. block=1
  7. exit=0
  8. for x=1, wid do
  9.   for y=1, wid do
  10.     for z=1, wid do
  11.       turtle.select(slot)
  12.       if not turtle.forward() then
  13.         turtle.dig()
  14.         turtle.forward()
  15.       end
  16.       turtle.digDown()
  17.       turtle.placeDown()
  18.       block=block+1
  19.       if block==65 then
  20.         block=1
  21.         slot=slot+1
  22.         if slot=17 then
  23.           exit=1
  24.           z=wid
  25.           y=wid
  26.           x=wid
  27.         end
  28.       end
  29.     end
  30.     if flip==0 then
  31.       flip=1
  32.       turtle.turnRight()
  33.       turtle.dig()
  34.       turtle.forward()
  35.       turtle.turnRight()
  36.     elseif flip==1 then
  37.       turtle.turnLeft()
  38.       turtle.dig()
  39.       turtle.forward()
  40.       turtle.turnLeft()
  41.   end
  42.   turtle.up()
  43.   turtle.turnRight()
  44.   turtle.turnRight()
  45.   turtle.dig()
  46.   turtle.forward()
  47.   turtle.turnLeft()
  48. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement