Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- hauteur=0
- function remonte ()
- hauto=(hauteur*hauteur)
- hauto1=math.sqrt(hauto)
- for i=1,hauto1 do
- turtle.up()
- turtle.placeDown(0)
- end
- end
- function checkDown()
- succes,rim=turtle.inspectDown()
- ram=rim.name
- print(ram)
- if ram=="minecraft:bedrock"then
- print(hauto)
- remonte ()
- turtle.forward()
- turtle.forward()
- turtle.forward()
- end
- end
- function desc ()
- turtle.digDown()
- turtle.down()
- hauteur=hauteur-1
- end
- function turn ()
- turtle.turnLeft()
- end
- function check ()
- succes,min=turtle.inspect()
- print(min.name)
- mon=min.name
- if mon~=((("minecraft:stone") or ("minecraft:dirt")) or ("minecraft:grass")) then
- turtle.dig()
- end
- end
- while true do
- check()
- turn()
- check()
- turn()
- check()
- turn()
- check()
- turn()
- checkDown()
- desc()
- print(hauteur)
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement