I found one command that was /eco take <name> <amount>
But that's for one specific name which would not be applicable for a public function.
Here's want a want to do.
Setting: Shops
Scenario: Player presses button to activate a dispenser and a command block at the same time. Dispenser gives wanted item and the command block removes the set amount for that item.
You may ask "why do it that way, when there's other ways?"
Because it looks cooler lol
But that's for one specific name which would not be applicable for a public function.
Here's want a want to do.
Setting: Shops
Scenario: Player presses button to activate a dispenser and a command block at the same time. Dispenser gives wanted item and the command block removes the set amount for that item.
You may ask "why do it that way, when there's other ways?"
Because it looks cooler lol