daily pastebin goal
5%
SHARE
TWEET

Untitled

a guest Jan 21st, 2019 53 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. shell.run("clear")
  2. print("System gestartet")
  3. print("")
  4. print("Gegrabener Bereich 5*5*70")
  5. print("")
  6. print("Habe " .. turtle.getFuelLevel() .." Treibstoff")
  7. print("")
  8. print("Benoetige ".. 5*5*70 .. " Treibstoff")
  9.  
  10. if turtle.getFuelLevel() >= 5*5*70 then
  11.   print("Bereit")
  12. else
  13.   print("Nicht Bereit")
  14. end
  15. print("")
  16. print("Soll ich starten?")
  17. print("Ja / Nein")
  18.  
  19. Starten = io.read()
  20.  
  21. if Starten == "Ja" then
  22.   print("Vorgang wird ausgefuehrt")
  23.   sleep(2)
  24.   shell.run("excavate 5")
  25. else
  26.   print("Abbruch")
  27.   shell.run("reboot")
  28. 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
 
Top