View difference between Paste ID: ciCKyyRv and gsHNyA8V
SHOW: | | - or go back to the newest paste.
1
function PlaceStone()
2-
	turtle.digDown()
2+
	if turtle.detectDown() then
3-
	turtle.select( 1 )
3+
		turtle.digDown()
4-
	if turtle.compareTo( 9 ) == false then
4+
		turtle.select( 1 )
5
		turtle.drop()
6
	end
7
	for x=1,9 do
8-
		if turtle.getItemCount( x ) == true then
8+
		if turtle.getItemCount(x) then
9-
			turtle.select( x )
9+
			turtle.select(x)
10
			turtle.placeDown()
11
		end
12
	end
13
end
14
     
15
16
for i=1,9 do
17-
for x=1,9 do
17+
	while turtle.getItemCount(i) do
18-
	if turtle.getItemCount( x ) == true then
18+
		turtle.select(9)
19-
		turtle.select( x )
19+
		if not turtle.compareDown() then
20-
		if turtle.compareDown() == false then
20+
21
		end
22
		turtle.forward()
23
	end
24
end