Guest User

Mine

a guest
Dec 26th, 2012
49
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.47 KB | None | 0 0
  1. local times = 0
  2. local j = 0
  3.  
  4. function Mine()
  5.   while turtle.forward() == false do
  6.     turtle.dig()
  7.   end
  8.   turtle.forward()
  9.   while turtle.up() == false do
  10.     turtle.digUp()
  11.   end
  12.   turtle.digDown()
  13. end
  14.  
  15. function Place(SlotNum)
  16.   turtle.select(SlotNum)
  17.   turtle.back()
  18.   turtle.placeUp()
  19.   turtle.forward()
  20. end
  21.  
  22. write("How many Digs ?")
  23. times = read()
  24.  
  25. for i=1, times do
  26.   j = j+1
  27.   Mine()
  28.   if j == 7 then
  29.     Place(16)
  30.     j = 0
  31.   end
  32. end
Advertisement
Add Comment
Please, Sign In to add comment