How many items in the inventory

Started by Rolling dice on

Topic category: Help with Minecraft modding (Java Edition)

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?

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"  

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.

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