Add logistics pipes test

This commit is contained in:
Cody Young 2023-03-20 20:42:52 -05:00
commit 5ba3e310d0
1 changed files with 7 additions and 0 deletions

View File

@ -0,0 +1,7 @@
local pipe = component.logisticspipe.getPipe()
local items = pipe.getAvailableItems()
for _,item in pairs(items) do
local itemStack = item.getValue1()
print("Requesting :" .. item.getValue2() .. " of " .. itemStack.getName() .. " from mod " .. itemStack.getModName())
pipe.makeRequest(itemStack, item.getValue2() + .0)
end