Advertisement
Guest User

master.lua

a guest
Oct 23rd, 2019
121
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.63 KB | None | 0 0
  1. mining = false
  2. rednet.open("left")
  3.  
  4. while true do
  5.    
  6.     if mining == false then
  7.         turtle.select(1)
  8.         turtle.place()
  9.         turtle.up()
  10.         turtle.select(3)
  11.         turtle.placeUp()
  12.         turtle.select(5)
  13.        
  14.         while not turtle.suckUp() do
  15.             sleep(1)
  16.         end    
  17.         turtle.place()
  18.         turtle.select(3)
  19.         turtle.digUp()
  20.         mining = true
  21.     end
  22.    
  23.     if mining == true then
  24.         select(2)
  25.         turtle.placeUp()
  26.         sleep(50)
  27.         turtle.dig()
  28.         turtle.dropUp()
  29.         turtle.digUp()
  30.     end                    
  31.     sleep(1)
  32. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement