Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- print "Checking Fuel Levels..."
- a = turtle.getFuelLevel()
- print(a)
- if a < 200 then
- print "!Attention: Low Fuel!"
- else
- print "Fuel Level Ok"
- end
- if a < 200 then
- print "attempting to refuel..."
- turtle.refuel(64)
- else
- print "no refueling needed."
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement