Advertisement
Kiliandeca

DecaMiner - Place prog

Aug 6th, 2016
189
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.28 KB | None | 0 0
  1. count = 0
  2.  
  3. while true do
  4.     if not turtle.detect() then
  5.         if turtle.getItemCount() >= 1 or turtle.suckUp() then
  6.             turtle.place()
  7.             peripheral.wrap("front").turnOn()
  8.             count = 0
  9.         end
  10.     end
  11.    
  12.     count = count + 1
  13.     sleep(1)
  14.  
  15.     if count >= 120 then
  16.         os.shutdown()
  17.     end
  18.  
  19. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement