scanning miner fixes
This commit is contained in:
@@ -314,7 +314,13 @@ end
|
|||||||
|
|
||||||
local function equip(side, item)
|
local function equip(side, item)
|
||||||
if not turtle.equip(side, item) then
|
if not turtle.equip(side, item) then
|
||||||
turtle.selectSlotWithQuantity(0)
|
if not turtle.selectSlotWithQuantity(0) then
|
||||||
|
ejectTrash()
|
||||||
|
end
|
||||||
|
if not turtle.selectSlotWithQuantity(0) then
|
||||||
|
turtle.select(16)
|
||||||
|
turtle.drop()
|
||||||
|
end
|
||||||
turtle.equip(side)
|
turtle.equip(side)
|
||||||
if not turtle.equip(side, item) then
|
if not turtle.equip(side, item) then
|
||||||
error('Unable to equip ' .. item)
|
error('Unable to equip ' .. item)
|
||||||
@@ -350,6 +356,9 @@ local function scan()
|
|||||||
(b.action == 'liquid_fuel' and b.y <= bedrock) then
|
(b.action == 'liquid_fuel' and b.y <= bedrock) then
|
||||||
return false
|
return false
|
||||||
|
|
||||||
|
elseif b.action == 'liquid_fuel' and b.damage > 0 then
|
||||||
|
return false
|
||||||
|
|
||||||
elseif b.y >= bedrock then
|
elseif b.y >= bedrock then
|
||||||
b.action = dictionary:get(b.name, b.metadata) or 'mine'
|
b.action = dictionary:get(b.name, b.metadata) or 'mine'
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user