Advertisement
Rusettsten

Fuckthetree_exe

May 2nd, 2017
170
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 1.05 KB | None | 0 0
  1. --Fuckthetree_exe
  2.  
  3. --Setup Area
  4.  
  5. local counter = 0
  6. local counterBool = false
  7. local verticalBool = false
  8.  
  9. repeat
  10.  
  11. if counterBool == false then
  12.    
  13.     if counter == 0 then
  14.         for i = 1, 16 do -- loop through the slots
  15.                 turtle.select(i) -- change to the slot
  16.                 if turtle.refuel(0) then -- if it's valid fuel
  17.                     local stack = turtle.getItemCount(i)
  18.                     turtle.refuel(stack) -- consume half the stack as fuel
  19.                 else
  20.                     turtle.dropDown()
  21.                 end
  22.             end
  23.     end
  24.    
  25.     if counter > 50 then
  26.         turtle.turnLeft()
  27.         turtle.dig()
  28.         turtle.forward()
  29.         turtle.turnLeft()
  30.         counter = 0
  31.         counterBool = true
  32.        
  33.     end
  34. else
  35.     if counter > 50 then
  36.     turtle.turnRight()
  37.     turtle.dig()
  38.     turtle.forward()
  39.     turtle.turnRight()
  40.     counter = 0
  41.     counterBool = false
  42.     end
  43. end
  44.  
  45. if verticalBool == false then
  46.     for i = 1, 114 do
  47.         turtle.digUp()
  48.         turtle.up()
  49.  
  50.     end
  51.     verticalBool = true
  52.     turtle.forward()
  53. else
  54.         for i = 1, 114 do
  55.         turtle.digDown()
  56.         turtle.down()
  57.  
  58.     end
  59.     verticalBool = false
  60.     turtle.forward()
  61. end
  62. counter = counter + 1
  63.  
  64.  
  65. until 1 == 2
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement