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

Started by TumbleElf on

Topic category: Help with MCreator software

Last seen on 11:52, 19. Sep 2024
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

Last seen on 19:55, 7. Jan 2021
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.

Last seen on 11:52, 19. Sep 2024
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'

Last seen on 19:55, 7. Jan 2021
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.

Last seen on 22:11, 1. Apr 2020
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?