Advertisement
AkaZombie

WoodBugger

Dec 31st, 2012
39
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.81 KB | None | 0 0
  1. local function moveForward()
  2.  for i = 1,7,1 do
  3.   turtle.forward()
  4.  end
  5. end
  6.  
  7.  
  8. local function checkFuel()
  9.  if turtle.getFuelLevel() < 96 then
  10.   turtle.select(1)
  11.   turtle.refuel(1)
  12.  end
  13. end
  14.  
  15. local function debugTree()
  16.  local height = 0
  17.  turtle.select(4)
  18.  turtle.dig()
  19.  turtle.forward()
  20.  turtle.dig()
  21.  while height < 45 do
  22.   turtle.digUp()
  23.   turtle.up()
  24.   turtle.dig()
  25.   height = height + 1
  26.  end
  27.  checkFuel()
  28.  turtle.turnRight()
  29.  turtle.dig()
  30.  turtle.forward()
  31.  turtle.turnLeft()
  32.  turtle.dig()
  33.  while height > 0 do
  34.   turtle.digDown()
  35.   turtle.down()
  36.   turtle.dig()
  37.   height = height - 1
  38.  end
  39.  turtle.back()
  40.  turtle.turnLeft()
  41.  turtle.forward()
  42.  turtle.turnLeft()
  43. end
  44.  
  45.  
  46. checkFuel()
  47. turtle.turnRight()
  48. moveForward()
  49. debugTree()
  50. moveForward()
  51. turtle.turnRight()
  52.  
  53. print("Debug finished!")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement