Add logistics pipes test
This commit is contained in:
7
test-programs/logistics-pipes/request_all.lua
Normal file
7
test-programs/logistics-pipes/request_all.lua
Normal 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
|
||||
Reference in New Issue
Block a user