app tweaks

This commit is contained in:
kepler155c
2018-11-09 11:35:27 -05:00
parent 5e744be252
commit e59a7a59a4

View File

@@ -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