help with checking a certain number of an item in inventory

Started by madcock83 on

Topic category: Help with Minecraft modding (Java Edition)

Joined Aug 2014
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
help with checking a certain number of an item in inventory

I want to keep a stack of say cobblestone in the players inventory if they have this item ive made in it.  
so I want to check if the player has less then 64 cobble stone and if they have less then add up to 64 cobble in. if they already have cobble then do nothing. 
I thought i had it figured out but i cant seem to put the procedure together that would make it work.  Any idea how to do it

Joined Aug 2014
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
basically just trying to…
Fri, 09/06/2019 - 21:34

basically just trying to check how many of a single item is in a players inventory

Joined Aug 2014
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
That topic seems to be gone…
Wed, 05/27/2020 - 16:31

That topic seems to be gone. Still need this.