Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- shell.run("clear")
- --Treibstoff Check--
- Treibstoff = turtle.getFuelLevel() + 0
- if Treibstoff <= 20 then
- print("Bitte mich erst Tanken")
- return
- end
- --Hauptprogramm
- print("Lege TNT in den ausgewaehlten Slot")
- print("Dann Bestaetigungs-Code eingeben")
- write("Bestaetige 1234: ")
- Code = io.read()
- --rs.setOutput("bottom", true)
- if Code == "1234" then
- for i =1,10 do
- turtle.up()
- end
- for i =1,10 do
- turtle.placeDown()
- sleep(5)
- end
- for i =1,10 do
- turtle.down()
- end
- else
- print("Falscher Code! Fahre herunter.")
- sleep(2)
- os.shutdown()
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement