I was making a shop with command blocks and wanted to use emeralds and/or diamonds as currency, i was going to have the command block do /clear playername emerald 5 and then set a comparator to output a signal to a /give @p item command block. I'm not sure if this is intentional or just a bug, but id appreciate it if there was a way to do /clear username item amount damage
The usage of the command is:
You have
5
as thedata
instead of themaxCount
.