largeNumberGoeshere

lumberjack.lua

Apr 27th, 2021 (edited)
49
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.38 KB | None | 0 0
  1. if turtle.getFuelLevel() < 100 then
  2.         error("please refuel to at least 100 units first")
  3. end
  4.  
  5. count = 0
  6. while true do
  7.     if not turtle.detect() then
  8.         while count > 0 do
  9.         count = count-1
  10.         turtle.digDown()
  11.         turtle.down()
  12.         end
  13.         error()
  14.     end
  15.     count = count+1
  16.     turtle.dig()
  17.     turtle.digUp()
  18.     turtle.up()
  19.  
  20.  
  21. end
Add Comment
Please, Sign In to add comment