So say, a player gets 4 stone, and they right click, it takes one, and if they right click again, it takes another one. How do you do this?
Use PlayerInteractEvent, check if the action is a right click, check if the item in the players hand is stone, and then get the amount of the item the player has in there hand and subtract 1