Is it possible to check the quantity of a certain item?

Started by Ne0n_Cat on

Topic category: Help with modding (Java Edition)

Last seen on 11:26, 25. May 2024
Joined May 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Is it possible to check the quantity of a certain item?

How do I check "does the player have 2 silicon in the inventory", I know there is a block: "If the player has [] in the inventory", but I want to know if it is possible to check: "Does the player have 2 or more items in the inventory".
p.s. sorry for my English.

An example of what I'm trying to do: https://drive.google.com/file/d/1VH_6j5_rC_5vAZHFNPb2erUusIeRKukq/view?usp=sharing

If there are items in the inventory and the block matched, then a pickaxe is made, all this works if done just like that: https://drive.google.com/file/d/1ZVAbPpjzcQJXATbjz924MxymkK4wUHLW/view?usp=drive_link

Get the item(stack) from the…
Thu, 05/16/2024 - 18:42

Get the item(stack) from the slot you want and you "get stack size" procedure block to get its size

Last seen on 11:26, 25. May 2024
Joined May 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I'm sorry, but could you…
Fri, 05/17/2024 - 13:53

I'm sorry, but could you explain to me how to do this? It would be great if you attached a screenshot with an example. I've been trying to figure out how to do this for three days now.