Advertisement
jBlume

Build Bridge

Jul 5th, 2023
839
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.40 KB | None | 0 0
  1. i=1
  2. turtle.select(i)
  3. while true do
  4.  if turtle.getItemCount(i)==0 then
  5.    i=i+1
  6.    turtle.select(i)
  7.   end
  8.  if i==17 then
  9.   turtle.reboot()
  10.  end
  11.  if turtle.detectUp() == true then
  12.   turtle.digUp()
  13.   else
  14.    if  turtle.detectDown() == false then
  15.     turtle.placeDown()
  16.     else
  17.      if turtle.detect() == true then
  18.     turtle.dig()
  19.     else
  20.      turtle.forward()
  21.      end
  22.     end
  23.   end
  24. end
  25.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement