Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- term.write("How far shall i dig?: ")
- distance = read()
- print("Digging a 1x1 blocks for "..distance.." blocks...")
- for i = 1, distance
- if turtle.detect() == "minecraft.gravel" do do
- repeat
- turtle.dig()
- sleep(0.5)
- turtle.digUp()
- sleep(0.5)
- until turtle.forward
- do
- turtle.dig()
- turtle.forward()
- turtle.digDown()
- turtle.digUp()
- end
Advertisement
Add Comment
Please, Sign In to add comment