From e59a7a59a453e07fa707eb9b41d2e905434edb73 Mon Sep 17 00:00:00 2001 From: kepler155c Date: Fri, 9 Nov 2018 11:35:27 -0500 Subject: [PATCH] app tweaks --- farms/farm.lua | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) 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