From cbee1221657e9ab8c9096115bffd9581086b7d58 Mon Sep 17 00:00:00 2001 From: kepler155c Date: Fri, 23 Nov 2018 20:12:12 -0500 Subject: [PATCH] attack program - new --- farms/attack.lua | 3 +++ 1 file changed, 3 insertions(+) diff --git a/farms/attack.lua b/farms/attack.lua index 6c62ad6..caa6f47 100644 --- a/farms/attack.lua +++ b/farms/attack.lua @@ -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