From 5ba3e310d0c4011ae393ed962df73692caa396db Mon Sep 17 00:00:00 2001 From: Cody Young Date: Mon, 20 Mar 2023 20:42:52 -0500 Subject: [PATCH] Add logistics pipes test --- test-programs/logistics-pipes/request_all.lua | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 test-programs/logistics-pipes/request_all.lua 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