Hello guys, could u give me some advice on how i could get the player inventory items and the amount for each item?
Search in in the class PlayerInventory for what you need using a decompiler. player.inventory is the players instance of that class. You should be able to find what you need very easily.