How to check for multiple of the same item in the player's inventory?

Started by Cole Snapper on

Topic category: Help with Minecraft modding (Java Edition)

Joined Feb 2025
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
How to check for multiple of the same item in the player's inventory?

I'm trying to make a block that, when right clicked, removes multiple of the same item from the player's inventory in order to craft something. But, I can't find anything that will let me do that. The only thing I found was the "Has Event/target entity inventory" block but, that only lets me check for a singular item, not multiple of the same. I tried to use this block twice but, I think that only checks for the same item twice, and what I want to do is if the player doesn't have enough of a certain item, then nothing will be crafted.