Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- while true do
- hauteur=0
- block = turtle.detect()
- local succes,data = turtle.inspect()
- print(data.name)
- print(block)
- sleep(1)
- if (block == true) and (data.name ~="minecraft:sapling") then
- print("lol")
- while block ==true do
- block = turtle.detect()
- turtle.dig()
- turtle.up()
- turtle.digUp()
- hauteur=hauteur+1
- print(hauteur)
- end
- end
- if block ==false then
- while hauteur~=0 do
- turtle.down()
- hauteur=hauteur-1
- print(hauteur)
- end
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement