diff --git a/farms/farm.lua b/farms/farm.lua index f5d6082..2a5a65d 100644 --- a/farms/farm.lua +++ b/farms/farm.lua @@ -139,13 +139,12 @@ local function harvest(blocks) elseif b.action == 'bump' then if turtle.faceAgainst(b) then turtle.equip('right', 'plethora:module:3') + os.sleep(.5) + -- search the ground for the dropped cactus local sensed = peripheral.call('right', 'sense') turtle.equip('right', 'minecraft:diamond_pickaxe') - os.sleep(.25) Util.filterInplace(sensed, function(s) if s.displayName == 'item.tile.cactus' and Point.distance(b, s) < 6 then - s.ex = s.x - s.ez = s.z s.x = Util.round(s.x) + turtle.point.x s.z = Util.round(s.z) + turtle.point.z s.y = -1