Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- Baumfaeller Programm fuer ComputerCraft von MGbeenieboy
- print("["..os.time().."] Programm startet.")
- turtle.forward()
- turtle.forward()
- turtle.forward()
- local function baumFaellt()
- turtle.dig()
- turtle.forward()
- while turtle.detectUp() do
- turtle.digUp()
- turtle.up()
- end
- while not turtle.detectDown() do
- turtle.down()
- end
- end
- turtle.turnLeft()
- baumFaellt()
- print("["..os.time().."] Erster Baum gefaellt.")
- for i=1,9 do
- turtle.back()
- turtle.place(13)
- print("["..os.time().."] Eiche nachgepflanzt.")
- turtle.turnRight()
- turtle.turnRight()
- baumFaellt()
- print("["..os.time().."] Birke gefaellt.")
- turtle.back()
- turtle.place(14)
- print("["..os.time().."] Birke nachgepflanzt.")
- turtle.turnLeft()
- turtle.forward()
- turtle.forward()
- turtle.turnLeft()
- baumFaellt()
- print("["..os.time().."] Eiche gefaellt.")
- end
- turtle.back()
- turtle.place(13)
- print("["..os.time().."] Eiche nachgepflanzt.")
- turtle.turnRight()
- turtle.turnRight()
- baumFaellt()
- print("["..os.time().."] Birke gefaellt.")
- --
- print("["..os.time().."] Zur naechsten Doppelreihe wechseln.")
- turtle.turnRight()
- turtle.turnRight()
- turtle.back()
- turtle.place(14)
- turtle.turnRight()
- turtle.turnRight()
- baumFaellt()
- turtle.forward()
- turtle.turnRight()
- turtle.turnRight()
- turtle.place(15)
- print("["..os.time().."] Zur naechsten Doppelreihe gewechselt!")
- --
- for i=1,9 do
- turtle.turnRight()
- turtle.turnRight()
- baumFaellt()
- print("["..os.time().."] Dschungelbaum gefaellt.")
- turtle.back()
- turtle.place(16)
- print("["..os.time().."] Dschungelbaum nachgepflanzt.")
- turtle.turnRight
- turtle.forward()
- turtle.forward()
- turtle.turnRight()
- baumFaellt()
- print("["..os.time().."] Tannenbaum gefaellt.")
- turtle.back()
- turtle.place(15)
- print("["..os.time().."] Tannenbaum nachgepflanzt.")
- end
- print("["..os.time().."] Alle Schleifen beendet. Zurueck zur Start-Position.")
- turtle.turnRight()
- turtle.turnRight()
- baumFaellt()
- turtle.back()
- turtle.place(16)
- turtle.turnRight()
- turtle.forward()
- turtle.forward()
- turtle.forward()
- turtle.turnRight()
- turtle.forward()
- turtle.forward()
- turtle.forward()
- turtle.forward()
- turtle.turnRight()
- print("["..os.time().."] Alle Baeume gefaellt. Bereit fuer den naechsten Start.")
Advertisement
Add Comment
Please, Sign In to add comment