Advertisement
Ubidibity

BoreThrough.lua

Apr 30th, 2025 (edited)
242
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.50 KB | Gaming | 0 0
  1. -- rewrite of borethrough (lost turtle)
  2. -- generic tunnel through whatever until you hit air (with sand/gravel tolerance)
  3.  
  4.  while not turtle.forward() do
  5.    turtle.digUp()
  6.    turtle.dig()
  7.    turtle.forward()
  8. --  turtle.digDown()
  9.   -- note it doesn't necessarily detect fluids
  10.    turtle.placeDown() -- just so I have something to walk on if there's air below but not in front
  11.  end
  12. -- come back a bit in case it parks in lava
  13. turtle.turnRight()
  14. turtle.turnRight()
  15. for x=1,16 do
  16.   turtle.Forward()
  17. end
  18.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement