Guest User

Infi-Quarry

a guest
Oct 24th, 2013
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. print("
  2. ▄░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░▄\n
  3. ░_____________________█______________________░\n
  4. ░____________________██______________________░\n
  5. ░___________________████____________________░\n
  6. ░_____█____________█████__________█________░\n
  7. ░_____██__________██████_________██_______░\n
  8. ░_____████_______███████_______███_______░\n
  9. ░_____██████____████████____█████______ ░\n
  10. ░__█_____██████__██████__███████___█___░\n
  11. ░_██______██████_█████_████████____██_ ░\n
  12. ░_████_____██████_███_██████_____█████ ░\n
  13. ░__█████████__████_█_███_█_█████████_ ░\n
  14. ░_____█████████__█_█_█_███████████____ ░\n
  15. ░_________█████████████████████________░\n
  16. ░_______________███_█_████_________________░\n
  17. ░_____________█████_█__█████______________░\n
  18. ░___________██_______█_______██_____________░\n
  19. ░____________▀______▄█▄_______▀_____________░\n
  20. ░░░░░░░░░░░░░░░░.░░░░░░░░░░░░░░░░░░░\n
  21. ░░░░░░░░░.▄██░░░░░░░░░░░░░░░░░░░░░░░\n
  22. ░░░░░░░░.▄███░░▄███▄░░░▄▄▄▄░░░░░░░░░\n
  23. ░░░░░░░.██▀██░░██▀██░░██▀▀██░░░░░░░░ \n
  24. ░░░░░.▄██▄▄██▄░░▄██▀░░██░░██░░░░░░░░ \n
  25. ░░░░░░░░░░.██░░███▄▄░░██▄▄██░░░░░░░░ \n
  26. ░░░░░░░░░.▄██▄░░░░░░░░░▀▀▀▀░░░░░░░░░\n
  27. ░░░░░░░░░░░░░░░░.░░░░░░░░░░░░░░░░░░░\n
  28. ░░░░░░░░░░░Infini-Quarry by IPJ ░░░░░░░░░░░░░\n
  29. ▀░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░▀\n
  30. ")
  31. print(" ")
  32. print(" ")
  33. print("Please make sure your enderchest it in my 1st slot :D")
  34. sleep(3)
  35. term.clear()
  36.  
  37. tArgs = { ... }
  38.  
  39. local x = tonumber(tArgs[1] or "")
  40. while not x do
  41.  print("Need a distance to travel in number form")
  42.   x = tonumber(read())
  43.   end
  44.  
  45.  
  46. local y = tonumber(tArgs[1] or "")
  47. while not y do
  48. print ("I need your y coord")
  49. y = tonumber(read())
  50. end
  51.  
  52. y = y - 5
  53.  
  54.  function drop()
  55.  if turtle.getItemCount(16) > 0 then
  56.  turtle.select(1)
  57.  turtle.digDown()
  58.  turtle.placeDown()
  59.  for i=1,16 do
  60.  turtle.select(i)
  61.  turtle.dropDown()
  62.  end
  63.  turtle.select(1)
  64.  turtle.digDown()
  65.  end
  66.  end
  67.      
  68.   function go()
  69.   while not turtle.forward() do
  70.   turtle.attack()
  71.   turtle.dig()
  72.   end
  73.   sleep(0.8)
  74.   end
  75.  
  76.   function dig()
  77.   turtle.digUp()
  78.   sleep(0)
  79.   turtle.dig()
  80.   turtle.digDown()
  81.   drop()
  82.   end
  83.  
  84.   function move()
  85.   sleep(0)
  86.   dig()
  87.   go()
  88.   end
  89.  
  90.   function row()
  91.     for i=1,x do
  92.     sleep(0)
  93.     move()
  94.     end
  95.   end
  96.  
  97.   function row1()
  98.   turtle.turnRight()
  99.   move()
  100.   turtle.turnRight()
  101.   end
  102.  
  103.   function row2()
  104.   turtle.turnLeft()
  105.   move()
  106.   turtle.turnLeft()
  107.   end
  108.  
  109.   function all()
  110.   for i=1,x do
  111.   row()
  112.   row1()
  113.   row()
  114.   row2()
  115.   end
  116.   end
  117.    
  118.   function home()
  119.   turtle.turnLeft()
  120.   for i=1,x do
  121.   sleep(0)
  122.   go()
  123.   go()
  124.   end
  125.   turtle.turnRight()
  126.   for i=1,3 do
  127.   turtle.down()
  128.   turtle.digDown()
  129.   sleep(0)
  130.   end
  131.   end
  132.  
  133.   for i=1,y do
  134.   all()
  135.   home()
  136.   end
Advertisement
Add Comment
Please, Sign In to add comment