Advertisement
bueddl

Untitled

Jun 13th, 2013
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.54 KB | None | 0 0
  1.     length = corridors * 3
  2.     width  = rows * 3
  3.  
  4.     -- main row
  5.  
  6.     -- this is the waypoint for the beginning of the mine
  7.     Turtle.addWayPoint()
  8.  
  9.     Turtle.digCorridor2(length, 2)
  10.    
  11.     Turtle.goToLastWP({})
  12.    
  13.  
  14.     -- make corridors
  15.     for i = 1, corridors+1 do
  16.         Turtle.turnLeft()
  17.         Turtle.digCorridor1(width, 2)
  18.         Turtle.back(width)
  19.         Turtle.turnAround()
  20.         Turtle.digCorridor1(width, 2)
  21.         Turtle.back(width)
  22.         Turtle.turnLeft()
  23.    
  24.         if i == corridors+1 then
  25.             Turtle.forward(3)
  26.         end
  27.     end
  28.     -- go back to first position
  29.     Turtle.goToLastWP({})
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement