SHARE
TWEET

Untitled

nepolak Oct 15th, 2019 101 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. function CheckForFuel()
  2. if turtle.getFuelLevel() < 10 or turtle.getFuelLevel() == 10 then
  3. turtle.refuel()
  4. end
  5. if turtle.getFuelLevel() < 10 or turtle.getFuelLevel() == 10 then
  6. return 0
  7. end
  8. return 1
  9. end
  10.  
  11. while CheckForFuel() == 1 do
  12. while turtle.detect() == true do
  13. turtle.dig()
  14. turtle.dropUp()
  15. end
  16. end
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top