Thank you again for responding,
it ends up in slot 4 I'd assume (I don't know why it would) when it checks slot 4 but goes to 5 because it isn't dirt, I dunno how to unselect a slot. I'm new to scripting and this mod but,
My code is as follows, if you could tell me what I could do different to unselect slots i'd be grateful.
local function digIfDetect()
if turtle.detect() then turtle.dig() end
end
local function digDownIfDetect()
if turtle.detectDown() then turtle.digDown() end
end
local function dropCobble()
turtle.select(2)
if turtle.compare(1) and turtle.getItemCount(2) > 63 then
turtle.drop()
end
end
local function dropGravel()
turtle.select(3)
if turtle.compare(3) and turtle.getItemCount(3) > 63 then
turtle.drop()
end
end
local function dropDirt()
turtle.select(4)
if turtle.compare(4) and turtle.getItemCount(4) > 63 then
turtle.drop()
end
end
local function dropDownCobble()
turtle.select(2)
if turtle.compareDown(1) and turtle.getItemCount(2) > 63 then
turtle.drop()
end
end
local function dropDownGravel()
turtle.select(3)
if turtle.compareDown(3) and turtle.getItemCount(3) > 63 then
turtle.drop()
end
end
local function dropDownDirt()
turtle.select(4)
if turtle.compareDown(4) and turtle.getItemCount(4) > 63 then
turtle.drop()
end
end
for i=1, 50 do
for i=1, 3 do
if turtle.getFuelLevel() < 55 then
turtle.refuel(3)
end
for i=1, 50 do
dropCobble()
dropGravel()
dropDirt()
digIfDetect()
turtle.forward()
end
turtle.turnRight()
turtle.turnRight()
dropDownCobble()
dropDownGravel()
dropDownDirt()
digDownIfDetect()
turtle.down()
end
for i=1, 4 do
turtle.up()
end
for i=1, 50 do
turtle.forward()
end
for i=1, 3 do
turtle.turnRight()
end
dropCobble()
dropGravel()
dropDirt()
digIfDetect()
turtle.forward()
for i=1, 3 do
turtle.turnRight()
end
end