milo logging

This commit is contained in:
kepler155c
2018-11-12 02:03:37 -05:00
parent 9ee8ce9f33
commit 3f095ff522
6 changed files with 41 additions and 15 deletions

View File

@@ -144,11 +144,13 @@ local function harvest(blocks)
local sensed = peripheral.call('right', 'sense')
turtle.equip('right', 'minecraft:diamond_pickaxe')
Util.filterInplace(sensed, function(s)
if s.displayName == 'item.tile.cactus' and Point.distance(b, s) < 6 then
if s.displayName == 'item.tile.cactus' then
s.x = Util.round(s.x) + turtle.point.x
s.z = Util.round(s.z) + turtle.point.z
s.y = -1
return true
if Point.distance(b, s) < 6 then
return true
end
end
end)
Point.eachClosest(turtle.point, sensed, function(s)