Pastebin launched a little side project called VERYVIRAL.com, check it out ;-) Want more features on Pastebin? Sign Up, it's FREE!
Guest

refuel

By: a guest on Dec 23rd, 2012  |  syntax: Lua  |  size: 0.18 KB  |  views: 27  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. function fuel()
  2. print ("refueling...")
  3. turtle.refuel(1)
  4. print("Current Fuel Level:" .. " " .. turtle.getFuelLevel())
  5. end
  6.  
  7. while turtle.getFuelLevel() < 1700 do
  8. fuel()
  9. end
clone this paste RAW Paste Data