Hi, I'm using Minecraft version 1.12.2 and Intelija IDEA, and I'm wondering how I can check the entire player's inventory for a certain block and the amount of it, and then I will have it run through an if statement checking if the player has enough of the block and if the player does then remove those blocks.
Hi, I'm using Minecraft version 1.12.2 and Intelija IDEA, and I'm wondering how I can check the entire player's inventory for a certain block and the amount of it, and then I will have it run through an if statement checking if the player has enough of the block and if the player does then remove those blocks.
Really would appreciate any help!
I figured it out, although when I try removing the item it dousen't actully go away its just invisable until you click on it or move it.