Minecraft Inventory Scanner
Solution 1:
Try using
/testfor @p {Inventory:[{id:"<block or item>"}]}
This will check for a specific item in the inventory, ignoring slots, using only 1 command block per item. Make sure you use the modpack prefix before your items. For vanilla Minecraft items, it is minecraft:<block or item>
.