Advertisement
Guest User

miningtunel.lua

a guest
Apr 10th, 2020
146
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(14)
  12.     turtle.place()
  13.     turtle.turnLeft()
  14.     turtle.down()
  15. end
  16.  
  17. function mining()
  18.     for kratka=1,50 do
  19.     if kratka % 8 == 0 then
  20.         placeTorch()
  21.     end
  22.         mineAhead()
  23.         end
  24. end
  25.  
  26. function turning()
  27.     turtle.turnRight()
  28.     mineAhead()
  29.     mineAhead()
  30.     mineAhead()
  31.     mineAhead()
  32.     turtle.turnRight()
  33. end
  34.  
  35. function dropItemsInChest()
  36.     turtle.select(2)
  37.     turtle.place()
  38. end
  39.     for miejsce=1,14 do
  40.     turtle.select(miejsce)
  41.     turtle.drop()
  42.     dropItemsInChest()
  43.     end
  44.  
  45. mining()
  46. turning()
  47. mining()
  48. dropItemsInChest()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement