Need help with resource gathering in game

I’m creating a game where a team gathers resources in a central stash and all players can use what is gathered. I’ve made it so players can pick up rocks and wood and carry them over their head. My plan is to have them bring the resource to a central stash where they can deposit them by looking at the crate. Each player will be able to bring up a resource window where it shows the collected resources.

My question is how do I make it so the process of taking the rock or wood to the stash will actually remove the rock from the game and add a value to my rock variable in my level blueprint?