Advertisement
Paragorn

Advent 03

Dec 3rd, 2013
51
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.50 KB | None | 0 0
  1. -- Variablen
  2. Auswahl = 1 + 0
  3. Flintzahl = 0 + 0
  4.  
  5. -- Einleitungsprogramm
  6. turtle.select(Auswahl)
  7. print("Gut. Ich suche Flint.")
  8.  
  9. -- Hauptprogramm
  10. while true do
  11.  if turtle.place() == true then
  12.   turtle.place()
  13.   turtle.dig()
  14.   Flintzahl = Flintzahl + 1
  15.  elseif turtle.place() == false and Auswahl == 17 then
  16.   print("Ich bin fertig!")
  17.   print("Ich habe "..Flintzahl.." Versuche gebraucht.")
  18.   break
  19.  elseif turtle.place() == false then
  20.   turtle.select(Auswahl)
  21.   Auswahl = Auswahl + 1
  22.  end
  23. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement