View difference between Paste ID: psqb92Nc and CDd0epE4
SHOW: | | - or go back to the newest paste.
1-
local top = 46
1+
local top = 51
2-
local bottom = 7
2+
local bottom = 46
3
local width = 63
4
5-
local torches = 2
5+
6
    if turtle.getFuelLevel() == 0 then
7-
local torchCounter = 0
7+
8
        turtle.select(1)
9-
local xStartRow = 4
9+
10-
local xSpacing = 6
10+
11-
local yStartRow = {8, 3}
11+
12-
local ySpacing = 9
12+
13
            end
14
        end
15
        turtle.select(prev)
16
    end
17
end
18
19
local function returnToFloor()
20
	turtle.turnRight()
21
    while not turtle.forward() do
22
        turtle.dig()
23
        sleep(.5)
24
    end
25
    turtle.turnLeft()
26
end
27
28-
local function advance()
28+
29-
    if turtle.getSelectedSlot() == 16 then
29+
	turtle.dig()
30-
        print('Need more materials')
30+
31-
        local empty = true
31+
32-
        while empty do
32+
33-
            for n=3, 16 do
33+
34-
                if turtle.getItemCount(n) > 0 and turtle.getItemDetail(n).name == 'chisel:marble' then
34+
			turtle.up()
35-
                    empty = false
35+
36-
                    turtle.select(n)
36+
			turtle.down()
37-
					return
37+
38-
                end
38+
39-
           	end
39+
    end    
40-
			sleep(5)
40+
	returnToFloor()
41
end