help with checking a certain number of an item in inventory

Started by madcock83 on Fri, 09/06/2019 - 20:01

Topic category: Help with MCreator modding

Last seen on 14:21, 28. Sep 2019
Joined Aug 2014
User points:

Statistics:

  • Comments:
  • Forum topics:
  • Modifications:
  • Wiki pages:
help with checking a certain number of an item in inventory
Fri, 09/06/2019 - 20:01

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

Last seen on 14:21, 28. Sep 2019
Joined Aug 2014
User points:

Statistics:

  • Comments:
  • Forum topics:
  • Modifications:
  • Wiki pages:
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