superTreefarm

This commit is contained in:
kepler155c@gmail.com
2018-12-21 19:48:40 -05:00
parent 12aebb0b88
commit fdf9c70338
4 changed files with 701 additions and 14 deletions

View File

@@ -53,17 +53,6 @@ local sensor = device['plethora:sensor']
turtle.setMovementStrategy('goto')
turtle.setPolicy(turtle.policies.attack)
function Point.iterateClosest(spt, ipts)
local pts = Util.shallowCopy(ipts)
return function()
local pt = Point.closest(spt, pts)
if pt then
Util.removeByValue(pts, pt)
return pt
end
end
end
local function findChests()
if chest then
return { chest }
@@ -109,6 +98,7 @@ local function dropOff()
end
end
end
turtle.select(1)
end
local function normalize(b)