Started by twistcharlie312 on Sat, 01/11/2020 - 00:10 Topic category: Help with Minecraft modding (Java Edition) how do I check if the player has more than one of the same item Jump to top Make a local variable to represent the item amount Make a loop for (64) times Make a check for item in inventory IF statement inside loop Repeat remove item and increasing the variable by 1 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 Jump to top Permalink Log in or register to post comments uuuh k Jump to top Permalink Log in or register to post comments I think there's a easier way Jump to top Permalink Log in or register to post comments for the var logic or number or string and for if what do i do for if statment Jump to top Permalink Log in or register to post comments also i think it wont work im 99% sure (i did wat u said) Jump to top Permalink Log in or register to post comments dont work how i want it to Jump to top Permalink Log in or register to post comments
Make a local variable to represent the item amount Make a loop for (64) times Make a check for item in inventory IF statement inside loop Repeat remove item and increasing the variable by 1 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 Jump to top Permalink Log in or register to post comments
for the var logic or number or string and for if what do i do for if statment Jump to top Permalink Log in or register to post comments
also i think it wont work im 99% sure (i did wat u said) Jump to top Permalink Log in or register to post comments
uuuh k
I think there's a easier way
for the var logic or number or string
and for if what do i do for if statment
also i think it wont work im 99% sure (i did wat u said)
dont work how i want it to