How to test if a player has more than 1 item in their inventory

Started by TumbleElf on

Topic category: Help with MCreator software

Joined Oct 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
How to test if a player has more than 1 item in their inventory

I know that the "If player has [] in inventory" block exists, but i want to know if you can test if a players has 2 or more of the items in their inventory.

plz help

Joined Aug 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Custom code, or test for…
Thu, 10/24/2019 - 07:15

Custom code, or test for them all individually.

Joined Oct 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I meant, if player has 2…
Thu, 10/24/2019 - 07:41

I meant, if player has 2 diamonds in inventory, not if player has 1 diamond in inventory and 1 carrot...

how do i do 'if player has 2 diamonds in inventory'

Joined Aug 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Basically you can't do…
Thu, 10/24/2019 - 08:07

Basically you can't do things like that without custom code. Not to my knowledge, anyway.

Joined Mar 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
What would the custom code…
Wed, 03/18/2020 - 05:08

What would the custom code for that be?

Also how would I implement custom code, as I've never done so?