commit 5ba3e310d0c4011ae393ed962df73692caa396db Author: Cody Young Date: Mon Mar 20 20:42:52 2023 -0500 Add logistics pipes test diff --git a/test-programs/logistics-pipes/request_all.lua b/test-programs/logistics-pipes/request_all.lua new file mode 100644 index 0000000..369a9a1 --- /dev/null +++ b/test-programs/logistics-pipes/request_all.lua @@ -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