Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local loop = true
- local mine = true
- local col = 0
- local colactive = true
- local i = 0
- local countdown
- local time
- write("Wartezeit: ")
- time = read()
- while loop == true do
- local right = false
- turtle.select(1)
- turtle.turnLeft()
- turtle.suck(3)
- turtle.refuel(3)
- turtle.turnRight()
- col = 0
- colactive = true
- countdown = time
- while countdown ~= 0 do
- term.clear()
- term.setCursorPos(1,1)
- write("Minuten bis zum naechsten Abbau:")
- write(countdown)
- os.sleep(60)
- countdown = countdown - 1
- end
- while mine == true do
- turtle.forward()
- if colactive == true then
- col = col + 1
- end
- if turtle.detectDown() == true then
- turtle.digDown()
- i = 1
- repeat
- turtle.select(i)
- turtle.placeDown()
- if turtle.detectDown == true then
- return
- end
- i = i + 1
- until i == 17
- i = 1
- end
- if turtle.detect() == true then
- colactive = false
- if right == false then
- right = true
- turtle.turnRight()
- if turtle.detect() == true then
- turtle.turnRight()
- turtle.turnRight()
- while turtle.detect() == false do
- turtle.forward()
- end
- turtle.turnLeft()
- while col ~= 0 do
- col = col - 1
- turtle.forward()
- end
- return
- else
- turtle.forward()
- turtle.turnRight()
- end
- else
- right = false
- turtle.turnLeft()
- if turtle.detect() == true then
- turtle.turnLeft()
- turtle.turnLeft()
- while turtle.detect() == false do
- turtle.forward()
- end
- turtle.turnLeft()
- turtle.forward()
- return
- else
- turtle.forward()
- turtle.turnLeft()
- end
- end
- end
- end
- i = 1
- repeat
- turtle.select(i)
- turtle.drop()
- until i == 17
- turtle.turnLeft()
- turtle.turnLeft()
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement