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

Started by TumbleElf on

Topic category: Help with MCreator software

Active 1 year ago
Joined Oct 2019
Points:
710

User statistics:

  • Modifications: 0
  • Forum topics: 10
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 15
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

Active 4 years ago
Joined Aug 2019
Points:
748

User statistics:

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

Custom code, or test for them all individually.

Active 1 year ago
Joined Oct 2019
Points:
710

User statistics:

  • Modifications: 0
  • Forum topics: 10
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 15
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'

Active 4 years ago
Joined Aug 2019
Points:
748

User statistics:

  • Modifications: 1
  • Forum topics: 4
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 123
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.

Active 5 years ago
Joined Mar 2020
Points:
644

User statistics:

  • Modifications: 0
  • Forum topics: 1
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 2
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?