Advertisement
Guest User

mineingTunnel.lua

a guest
Apr 4th, 2020
155
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.79 KB | None | 0 0
  1. function mineAhead()
  2.     turtle.dig()
  3.     turtle.forward()
  4.     turtle.digUp()
  5. end
  6.  
  7. function placeTorch()
  8.     turtle.up()
  9.     turtle.turnRight()
  10.     turtle.dig()
  11.     turtle.select(16)
  12.     turtle.place()
  13.     turtle.turnLeft()
  14.     turtle.down()
  15.    
  16. end
  17.  
  18. function mineing()
  19.     for kratka=1,64 do
  20.         if kratka % 9 == 0 then
  21.             placeTorch()
  22.         end  
  23.              
  24.         mineAhead()
  25.     end
  26. end
  27.  
  28. function turning()
  29.     turtle.turnLeft()
  30.     mineAhead()
  31.     mineAhead()
  32.     mineAhead()
  33.     mineAhead()
  34.     turtle.turnLeft()
  35. end
  36.  
  37. function dropItemsInChest()
  38.     turtle.select(15)
  39.     turtle.place()
  40.    
  41.     for miejsce=1,14 do
  42.         turtle.select(miejsce)
  43.         turtle.drop()
  44.     end
  45. end
  46.  
  47. mineing()
  48. turning()
  49. mineing()
  50. dropItemsInChest()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement