Advertisement
Le_JuiceBOX

turtle_os_fuel

Aug 16th, 2022
797
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.37 KB | None | 0 0
  1. local SEPERATOR = "======================================="
  2.  
  3. shell.run("clear")
  4. print(SEPERATOR)
  5. print("Frogpulp OS")
  6. print(SEPERATOR)
  7. print("\nFuel Level: "..turtle.getFuelLevel().."\n\n")
  8. print("Refuel all? (y/n)")
  9. local res = io.read()
  10. if res == y then
  11.     shell.run("refuel all")
  12. else
  13.     shell.run("reboot")
  14.     return
  15. end
  16. os.sleep(1)
  17. shell.run("reboot")
  18.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement