mojira.dev
MC-116989

/clear command will not allow you to choose how many items you clear.

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

Comments 2

The usage of the command is:

/clear [player] [item] [data] [maxCount] [dataTag]

You have 5 as the data instead of the maxCount.

Wow, I'm an idiot. Thank you so much!

Chance Thomas

(Unassigned)

Unconfirmed

Minecraft 17w18a

Retrieved