Advertisement
ItsGynoDa

GetFuelLevel

Jan 18th, 2021 (edited)
46
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.28 KB | None | 0 0
  1. print "Checking Fuel Levels..."
  2.  
  3. a = turtle.getFuelLevel()
  4.  
  5. print(a)
  6. if a < 200 then
  7. print "!Attention: Low Fuel!"
  8. else
  9. print "Fuel Level Ok"
  10. end
  11.  
  12. if a < 200 then
  13. print "attempting to refuel..."
  14. turtle.refuel(64)
  15. else
  16. print "no refueling needed."
  17. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement