more items?

"How can I, with a command like if items entity @s container.* cobblestone[custom_data={seltsamer:bruchstein},count=10], check if the player has enough items? Because with this command, the player must have exactly 10 items in one stack. But I want to make a command where the player can have more than 10 stones in their inventory in total, and it should still work.

Continue to help post