return true
end
local msg = "Could not transfer and select: "
- local i_tmp, e = findEmpty()
+ local i_tmp, e = lib.findEmpty()
if not i_tmp then return false, msg .. e end
- local i_from, e = find(t)
+ local i_from, e = lib.findItem(t)
if not i_from then return false, msg .. e end
-- if the i'th slot is free, skip the unnecessary item shuffle
if not turtle.getItemDetail(i) then
for i = 1, n do map[c]() end
-- print(cmd, tostring(i).."/"..tostring(n))
-- end
- return lib.runStringCommand(rest)
+ return lib.runStringCommand(rest, map)
end
-- rep : number of repeats -> string -> string | nil
.. harvest_ns .. "l" .. harvest_ew .. "l"
.. harvest_ns .. "l" .. harvest_ew
.. go_to_dropoff
- return runStringCommand(seq, map)
+ return tu.runStringCommand(seq, map)
end
while true do