Added more methods.

This commit is contained in:
Andrew Lalis 2022-12-17 21:46:14 +01:00
parent f4fa29eab6
commit 5ed5343691
1 changed files with 6 additions and 2 deletions

View File

@ -76,11 +76,15 @@ function itemscript.dropAllDown(name, fuzzy)
end end
function itemscript.dropAllUp(name, fuzzy) function itemscript.dropAllUp(name, fuzzy)
dropFiltered(name, fuzzy or false, t.dropDown, itemMatchesFilter) dropFiltered(name, fuzzy or false, t.dropUp, itemMatchesFilter)
end end
function itemscript.dropAllExcept(name, fuzzy) function itemscript.dropAllExcept(name, fuzzy)
dropFiltered(name, fuzzy or false, t.drop, itemMatchesFilter) dropFiltered(name, fuzzy or false, t.drop, itemNotMatchesFilter)
end
function itemscript.dropAllDownExcept(name, fuzzy)
dropFiltered(name, fuzzy or false, t.dropDown, itemNotMatchesFilter)
end end
-- Cleans up the turtle's inventory by compacting all stacks of items. -- Cleans up the turtle's inventory by compacting all stacks of items.