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 modding (Java Edition)

Last seen on 02:52, 30. Jun 2020
Joined Aug 2014
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
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 02:52, 30. Jun 2020
Joined Aug 2014
User points:

User statistics:

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

Last seen on 02:52, 30. Jun 2020
Joined Aug 2014
User points:

User statistics:

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

That topic seems to be gone. Still need this.