Advertisement
brensen11

ezBridge

Aug 15th, 2022 (edited)
835
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.45 KB | None | 0 0
  1. local m = require("blib")
  2.  
  3. -- Useful for placing blocks and moving forward!
  4. turtle.select(1)
  5. local cell = 1
  6. local empty = false
  7. while not empty do
  8.  
  9.    
  10.     if not m.CheckFuel(10) then
  11.         empty = false
  12.     end
  13.     turtle.select(cell)
  14.  
  15.     if not turtle.placeDown() then
  16.         if cell == 16 then
  17.             empty = true
  18.         end
  19.         cell = cell + 1
  20.         turtle.select(cell)
  21.     else
  22.         turtle.forward()
  23.     end
  24.  
  25.  
  26. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement