Nik333

CC: Hole

Jan 5th, 2017
136
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.87 KB | None | 0 0
  1. length = math.min(90,math.max(5,...))
  2. way = length
  3. turtle.select(1)
  4. while way>0 do
  5.   while turtle.forward()==false do
  6.     turtle.dig()
  7.   end
  8.   turtle.turnLeft()
  9.   turtle.dig()
  10.   turtle.turnRight()
  11.   turtle.turnRight()
  12.   turtle.dig()
  13.   while turtle.up()==false do
  14.     turtle.digUp()
  15.   end
  16.   turtle.dig()
  17.   turtle.turnLeft()
  18.   turtle.turnLeft()
  19.   turtle.dig()
  20.   turtle.down()
  21.   turtle.turnRight()
  22.   way=way-1
  23. end
  24. way = length
  25. turtle.turnLeft()
  26. turtle.turnLeft()
  27. cobble = 0
  28. turtle.select(1)
  29. slot=1
  30. while way>0 do
  31.   if turtle.detectDown()==false then
  32.     while slot<=16 do
  33.       data=turtle.getItemDetail()
  34.       if data.name=="minecraft:cobblestone" then
  35.         turtle.placeDown()
  36.         break
  37.       else
  38.         slot=slot+1
  39.         turtle.select(slot)
  40.       end
  41.     end
  42.   end
  43.   while turtle.forward()==false do
  44.     turtle.dig()
  45.   end
  46.   way=way-1
  47. end
Advertisement
Add Comment
Please, Sign In to add comment