Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- hauteur=0
- turtle.select(2)
- function ender ()
- turtle.dig()
- turtle.select(4)
- turtle.place()
- sleep(1)
- turtle.select(1)
- turtle.drop()
- turtle.select(2)
- turtle.drop()
- turtle.select(3)
- turtle.drop()
- turtle.select(5)
- turtle.drop()
- turtle.select(6)
- turtle.drop()
- turtle.select(7)
- turtle.drop()
- turtle.select(8)
- turtle.drop()
- turtle.select(9)
- turtle.drop()
- turtle.select(10)
- turtle.drop()
- turtle.select(11)
- turtle.drop()
- turtle.select(12)
- turtle.drop()
- turtle.select(13)
- turtle.drop()
- turtle.select(14)
- turtle.drop()
- turtle.select(15)
- turtle.drop()
- turtle.select(4)
- sleep(1)
- turtle.dig()
- turtle.select(1)
- end
- function remonte ()
- hauto=(hauteur*hauteur)
- hauto1=math.sqrt(hauto)
- for i=1,hauto1 do
- turtle.select(1)
- turtle.up()
- turtle.placeDown(1)
- end
- end
- function checkDown()
- succes,rim=turtle.inspectDown()
- ram=rim.name
- print(ram)
- if ram=="minecraft:bedrock"then
- print(hauto)
- remonte ()
- ender ()
- 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") and mon~=("minecraft:dirt") and mon~=("minecraft:grass") then
- turtle.dig()
- end
- end
- while true do
- check()
- turn()
- check()
- turn()
- check()
- turn()
- check()
- turn()
- checkDown()
- desc()
- print(hauteur)
- end
Add Comment
Please, Sign In to add comment