how can i check for

Started by twistcharlie312 on

Topic category: Help with Minecraft modding (Java Edition)

Joined Dec 2018
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
how can i check for

how do I check if the player has more than one of the same item

Joined May 2015
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
 Make a local variable to…
Sat, 01/11/2020 - 04:03
  1.  Make a local variable to represent the item amount
  2.  Make a loop for (64) times
  3. Make a check for item in inventory IF statement inside loop
  4.  Repeat remove item and increasing the variable by 1
  5.  Make an IF Statement that if the variable is greater than 1, do your output
  •  If not, add the item to the inventory (variable) times
Joined Dec 2018
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
 I think there's a easier…
Sat, 01/11/2020 - 18:52

 I think there's a easier way 

Joined Dec 2018
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
for the var logic or number…
Sat, 01/11/2020 - 18:56

for the var logic or number or string

and for if what do i do for if statment 

 

Joined Dec 2018
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
also i think it wont work im…
Sat, 01/11/2020 - 18:58

also i think it wont work im 99% sure (i did wat u said)

Joined Dec 2018
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
dont work how i want it to 
Sat, 01/11/2020 - 19:15

dont work how i want it to