View difference between Paste ID: syUBUE5q and gYC59Bp0
SHOW: | | - or go back to the newest paste.
1
while true do
2-
	if turtle.getItemSpace() == 0 then
2+
    if turtle.getItemSpace(1) == 0 then
3-
		turtle.drop()
3+
         turtle.drop()
4-
	end
4+
    end
5-
	if turtle.detect() then
5+
    if turtle.detect() then
6-
		turtle.dig()
6+
        turtle.dig()
7-
	end
7+
    end
8
end