I need to detect multiple of the same item in a player's inventory, and I found this command :
/testfor @p[r=30] {Inventory:[{id:"minecraft:cobblestone",Count:32b}]}
However, I need to detect unstackable items, and that command only works on stackable ones. Also, it is important to know that I can't use scoreboards because this is a map for a server and the scoreboards will not reset after the game resets, and there is no way for me to detect when a game ends to reset the scoreboards. It is also important to know that the server I am trying to get this to work on is in 1.9.
/testfor @p[r=30] {Inventory:[{id:"minecraft:cobblestone",Count:32b}]}
However, I need to detect unstackable items, and that command only works on stackable ones. Also, it is important to know that I can't use scoreboards because this is a map for a server and the scoreboards will not reset after the game resets, and there is no way for me to detect when a game ends to reset the scoreboards. It is also important to know that the server I am trying to get this to work on is in 1.9.
2
hey umm idk
In short, you can't. You could detect for items in particular inventory slots, so the same thing in slot 1 and 2 etc. But not for multiple of the same unstackable item just in someones inventory
