Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local i = 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
- end
- end
- while true do
- couloir()
- poseTorche()
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement