Advertisement
Guest User

M

a guest
Apr 26th, 2015
217
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 1.13 KB | None | 0 0
  1. function Mine()
  2.   turtle.dig()
  3.   turtle.forward()
  4.   turtle.digUp()
  5. end
  6.  
  7. function count()
  8.   -- input count on second nm --
  9.   for i = 1, 100 do
  10.     Mine()
  11.     print(i)
  12.     i = i + 1
  13.   end
  14.   chest()
  15.   next()
  16.   Mine()
  17.   print("Stopped")
  18. end
  19.  
  20. function chest()
  21.   turtle.select(15)
  22.   turtle.turnLeft()
  23.   turtle.turnLeft()
  24.   turtle.place()
  25.   dropoff()
  26.   turtle.dig()
  27.   turtle.select(1)
  28.   turtle.transferTo(15)
  29.   turtle.turnLeft()
  30.   turtle.turnLeft()
  31. end
  32.  
  33. function dropoff()
  34.   turtle.select(1)
  35.   turtle.drop()
  36.   turtle.select(2)
  37.   turtle.drop()
  38.   turtle.select(3)
  39.   turtle.drop()
  40.   turtle.select(4)
  41.   turtle.drop()
  42.   turtle.select(5)
  43.   turtle.drop()
  44.   turtle.select(6)
  45.   turtle.drop()
  46.   turtle.select(7)
  47.   turtle.drop()
  48.   turtle.select(8)
  49.   turtle.drop()
  50.   turtle.select(9)
  51.   turtle.drop()
  52.   turtle.select(10)
  53.   turtle.drop()
  54.   turtle.select(11)
  55.   turtle.drop()
  56.   turtle.select(12)
  57.   turtle.drop()
  58.   turtle.select(13)
  59.   turtle.drop()
  60.   turtle.select(14)
  61.   turtle.drop()
  62.   turtle.select(1)
  63. end
  64. function next()
  65.   turtle.turnLeft()
  66.   Mine()
  67.   Mine()
  68.   Mine()
  69.   turtle.turnLeft()
  70. end
  71. i = 1
  72. count()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement