Advertisement
Guest User

mine

a guest
Jul 10th, 2014
165
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 1.28 KB | None | 0 0
  1. args = {...}
  2. a = "yolo swaggins"
  3. lenght = args[1]
  4. times = args[2]
  5. tim1 = 1
  6. turtle.select(1)
  7. function a1()
  8.  while turtle.detectUp() do
  9.  turtle.digUp()
  10.  end
  11.  while turtle.detect() do
  12.  turtle.dig()
  13.  end
  14.  while turtle.detectUp() do
  15.  turtle.digUp()
  16.  end
  17.  while turtle.detectDown() do
  18.  turtle.digDown()
  19.  end
  20.  while turtle.detectUp() do
  21.  turtle.digUp()
  22.  end
  23.  drop()
  24.  turtle.forward()
  25. end
  26. function a1x(x)
  27.  for i = 1, x do
  28.   a1()
  29.  end
  30. end
  31. function a2()
  32.  a1x(lenght)
  33.  if not tim1 == 1 then
  34.   turtle.turnLeft()
  35.   a1x(2)
  36.   turtle.digDown()
  37.   while turtle.detectUp() do
  38.    turtle.digUp()
  39.   end
  40.   turtle.turnLeft()
  41.   turtle.turnLeft()
  42.   a1x(2)
  43.  else
  44.   turtle.turnRight()
  45.  end
  46.  a1x(3)
  47.  turtle.turnRight()
  48.  a1x(lenght)
  49.  if a == "yolo swaggins" then
  50.   turtle.turnRight()
  51.   a1x(2)
  52.   while turtle.detectUp() do
  53.    turtle.digUp()
  54.   end
  55.   turtle.digDown()
  56.   turtle.turnLeft()
  57.   turtle.turnLeft()
  58.   a1x(2)
  59.  else
  60.   turtle.turnLeft()
  61.  end
  62.  a1x(3)
  63.  turtle.turnLeft()  
  64. end
  65. function drop()
  66.   if turtle.getItemCount(15) > 0 then
  67.     turtle.select(16)
  68.     turtle.digDown()
  69.     turtle.placeDown()
  70.     for s = 1, 15 do
  71.       turtle.select(s)
  72.       turtle.dropDown()
  73.     end
  74.     turtle.select(1)
  75.   end
  76. end
  77. function a3()
  78.  for i = 1, times do
  79.   a2()
  80.  end
  81. end
  82. a3()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement