Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local longueurs = 0
- function compareDig()
- turtle.turnLeft()
- turtle.select(1)
- if not turtle.compare() then
- turtle.select(2)
- if not turtle.compare() then
- turtle.select(3)
- if not turtle.compare() then
- turtle.select(4)
- if not turtle.compare() then
- turtle.select(5)
- if not turtle.compare() then
- turtle.select(6)
- if not turtle.compare() then
- turtle.select(7)
- if not turtle.compare() then
- turtle.select(8)
- if not turtle.compare() then
- turtle.dig()
- end
- end
- end
- end
- end
- end
- end
- end
- turtle.turnRight()
- end
- while true do
- while not turtle.detect() do
- compareDig()
- turtle.forward()
- end
- turtle.turnRight()
- longueurs = longueurs + 1
- if longueurs == 4 then
- longueurs = 0
- turtle.down()
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment