Advertisement
karelvysinka

item logistics pipies count

Apr 14th, 2023 (edited)
642
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.41 KB | None | 0 0
  1. -- Najde a připojí Inventory System Connector
  2. local isc = peripheral.find("logisticspipes:inventory_system_connector")
  3.  
  4. if isc == nil then
  5.   print("Nepodařilo se najít Inventory System Connector.")
  6.   return
  7. end
  8.  
  9. -- Získá seznam položek a množství
  10. local items = isc.getItems()
  11.  
  12. -- Vypíše seznam položek a množství
  13. for _, item in pairs(items) do
  14.   print(item.name .. ": " .. item.amount)
  15. end
  16.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement