How many items in the inventory

Started by Rolling dice on

Topic category: Help with modding (Java Edition)

Last seen on 19:30, 16. Sep 2024
Joined Dec 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
How many items in the inventory

I'm creating a crafting gui, when I press a button I want the procedure to check if the player has 32 diamonds in the inventory and remove them, how should I do this?

Last seen on 12:07, 17. Sep 2024
Joined Apr 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
you can simply use the…
Wed, 09/11/2024 - 00:36

you can simply use the procedure template "get number of items in entity's inventory"  

Last seen on 19:30, 16. Sep 2024
Joined Dec 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Thanks a lot, I completely…
Thu, 09/12/2024 - 15:27

Thanks a lot, I completely forgot about procedure templates.

Last seen on 12:07, 17. Sep 2024
Joined Apr 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
You're welcome 
Thu, 09/12/2024 - 15:55

You're welcome