attack program - new

This commit is contained in:
kepler155c
2018-11-23 20:12:12 -05:00
parent 8b439baf30
commit cbee122165

View File

@@ -76,6 +76,9 @@ local function dropOff()
local inv = turtle.getSummedInventory()
for _, slot in pairs(inv) do
if slot.count >= 16 then
if turtle.getFuelLevel() < 1000 then
turtle.refuel(slot.name, 16)
end
turtle.dropDownAt(chest, slot.name)
end
end