Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local i = 0
- local turn = true
- local h = 0
- function demitour()
- local k = 0
- for k=0,1,1 do
- turtle.turnLeft()
- end
- end
- function poseTorche()
- if i == 10 then
- turtle.select(1)
- demitour()
- turtle.place()
- demitour()
- i = 0
- end
- end
- function couloir()
- if turtle.detect() == true then
- turtle.dig()
- elseif turtle.detectUp() == true then
- turtle.digUp()
- elseif turtle.detectDown() == false then
- turtle.select(3)
- turtle.placeDown()
- else
- turtle.forward()
- i = i + 1
- h = h + 1
- end
- end
- function changeCouloir()
- if turn == true then
- turtle.turnLeft()
- while h <= 67 do
- couloir()
- end
- turtle.turnLeft()
- turn = false
- elseif turn == false then
- turtle.turnRight()
- while h<=67 do
- couloir()
- end
- turtle.turnRight()
- turn = true
- end
- end
- while true do
- while h <= 64 do
- couloir()
- poseTorche()
- end
- changeCouloir()
- h = 0
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement