Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- Variablen
- Auswahl = 1 + 0
- Flintzahl = 0 + 0
- -- Einleitungsprogramm
- turtle.select(Auswahl)
- print("Gut. Ich suche Flint.")
- -- Hauptprogramm
- while true do
- if turtle.place() == true then
- turtle.place()
- turtle.dig()
- Flintzahl = Flintzahl + 1
- elseif turtle.place() == false and Auswahl == 17 then
- print("Ich bin fertig!")
- print("Ich habe "..Flintzahl.." Versuche gebraucht.")
- break
- elseif turtle.place() == false then
- turtle.select(Auswahl)
- Auswahl = Auswahl + 1
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement