diff --git a/inferium-harvester.lua b/inferium-harvester.lua index 2d54a2f..f558e5e 100644 --- a/inferium-harvester.lua +++ b/inferium-harvester.lua @@ -1,11 +1,12 @@ local config = { length = 8, - firstCropZ = 2 + firstCropZ = 2, + energySaving = false } local MIN_FUEL_NEEDED = (10 + config.firstCropZ + config.length) * 2 -local VERSION = "0.1.4" +local VERSION = "0.2.0" local IDLE_TIME = 2 local turtleUtils = require('libs/turtle-utils') @@ -153,7 +154,9 @@ local function harvestProcedure() turtle.turnLeft() for i=1, config.length, 1 do - harvestDown() + if config.energySaving then + harvestDown() + end if i ~= config.length then forward()