Mine_Crafter

turtle1

Apr 24th, 2022 (edited)
46
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 1.24 KB | None | 0 0
  1. i = 0
  2. e = 0
  3. h = 0
  4.  
  5.  
  6.  
  7. local x,y,z = gps.locate(2)
  8.  
  9. while true do
  10.     if i >= 9 then
  11.         turtle.turnLeft()
  12.         turtle.dig()
  13.         turtle.forward()
  14.         turtle.turnLeft()
  15.         turtle.dig()
  16.         i = i - i
  17.         e = e + 1
  18.         print(e)
  19.         print(h)
  20.         print(It)
  21.         if e >= 2 then
  22.             if It >= 64 then
  23.                 repeat
  24.                     turtle.up()
  25.                 until(turtle.detectUp())
  26.  
  27.                 if turtle.detectUp() then
  28.                     turtle.dropUp(64)
  29.                     repeat
  30.                         turtle.down()
  31.                     until(turtle.detectDown())
  32.                 else
  33.                     turtle.up()
  34.                 end
  35.             else
  36.               turtle.digDown()
  37.               turtle.down()
  38.               e = e - e
  39.               h = h + 1
  40.             end
  41.         end    
  42.  
  43.     elseif i <= 10 then
  44.         i = i + 1
  45.         turtle.dig()
  46.         turtle.forward()
  47.         SeSo = turtle.getSelectedSlot()
  48.         It = turtle.getItemCount(SeSo)
  49.         if y == 5 then
  50.            turtle.up()
  51.            if y == 100 then
  52.             print("Job Done")  
  53.             break
  54.            end
  55.  
  56.         end    
  57.     end    
  58. end
  59.  
  60.  
  61.  
Add Comment
Please, Sign In to add comment