app tweaks
This commit is contained in:
@@ -139,13 +139,12 @@ local function harvest(blocks)
|
|||||||
elseif b.action == 'bump' then
|
elseif b.action == 'bump' then
|
||||||
if turtle.faceAgainst(b) then
|
if turtle.faceAgainst(b) then
|
||||||
turtle.equip('right', 'plethora:module:3')
|
turtle.equip('right', 'plethora:module:3')
|
||||||
|
os.sleep(.5)
|
||||||
|
-- search the ground for the dropped cactus
|
||||||
local sensed = peripheral.call('right', 'sense')
|
local sensed = peripheral.call('right', 'sense')
|
||||||
turtle.equip('right', 'minecraft:diamond_pickaxe')
|
turtle.equip('right', 'minecraft:diamond_pickaxe')
|
||||||
os.sleep(.25)
|
|
||||||
Util.filterInplace(sensed, function(s)
|
Util.filterInplace(sensed, function(s)
|
||||||
if s.displayName == 'item.tile.cactus' and Point.distance(b, s) < 6 then
|
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.x = Util.round(s.x) + turtle.point.x
|
||||||
s.z = Util.round(s.z) + turtle.point.z
|
s.z = Util.round(s.z) + turtle.point.z
|
||||||
s.y = -1
|
s.y = -1
|
||||||
|
|||||||
Reference in New Issue
Block a user