Well, what exactly I'm trying to do is to automatically use an item, so I'll be very direct
and for that I need to get the items from the player's inventory and check if he has this specific item that will be used, how can I do that?
question: get the items from the player's inventory, check if it is the item I want, and if it is, return the slot that this item is to be used
Minecraft 1.8.9