View difference between Paste ID: F1DwcJZp and DdwXHKqV
SHOW: | | - or go back to the newest paste.
1-
--Miner by Block Change--
1+
--New Age Stoner--
2
--For the purifying daisy--
3-
--Global Var--
3+
4
t.select(1)
5-
base = t.inspect()
5+
6
function left()
7-
--Functions--
7+
	t.turnLeft()
8-
function mine()
8+
	t.forward()
9-
	if not (t.inspect() == base) then
9+
	t.turnRight()
10-
		t.dig()
10+
11-
		return true
11+
function side()
12-
	else
12+
	length = 3
13-
		return false
13+
	while length > 0
14
		t.place()
15
		left()
16
		length = length - 1
17-
function store()
17+
18-
	--select and place chest-
18+
	left()
19-
	t.select(1)
19+
	t.forward()
20-
	t.placeUp()
20+
	t.turnRight()
21-
	--store all besides first 2 slots--
21+
22-
	for i=16,3,-1 do
22+
function loop()
23-
		t.select(i)
23+
	loops = 4
24-
		t.dropUp()
24+
	while loops > 0 do
25
		side()
26-
	--select chest slot, get chest--
26+
		loops = loops - 1
27-
	t.select(1)
27+
28-
	t.digUp()
28+
29
function main()
30-
function replace()
30+
	while not (t.getItemCount() == 0) do
31-
	--select and place chest--
31+
		loop()
32-
	t.select(2)
32+
33-
	t.placeUp()
33+
end