Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 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)
- turtle.turnRight()
- turtle.turnRight()
- baumFaellt()
- --
- turtle.turnRight()
- turtle.turnRight()
- turtle.back()
- turtle.place(14)
- turtle.turnRight()
- turtle.turnRight()
- baumFaellt()
- turtle.forward()
- turtle.turnRight()
- turtle.turnRight()
- turtle.place(15)
- --
- for i=1,9 do
- turtle.turnRight()
- turtle.turnRight()
- baumFaellt()
- turtle.back()
- turtle.place(16)
- turtle.turnRight
- turtle.forward()
- turtle.forward()
- turtle.turnRight()
- baumFaellt()
- turtle.back()
- turtle.place(15)
- end
- 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()
Advertisement
Add Comment
Please, Sign In to add comment