View difference between Paste ID: w5KP5bpM and tYnhRF7A
SHOW: | | - or go back to the newest paste.
1
local blocks = 0
2
term.write("How many blocks forward? :")
3
blocks = read()
4-
function digAll()
4+
5-
	turtle.digUp()
5+
6-
	turtle.dig()
6+
		digforward()
7
	end
8
end
9-
function gravel()
9+
function digforward()
10-
	if turtle.detect() then
10+
	turtle.forward)
11-
		digAll()
11+
12
13-
	if turtle.detectUp() then
13+