[MC-2743] Command block Glitch Created: 10/Nov/12  Updated: 14/Aug/18  Resolved: 11/Nov/12

Status: Resolved
Project: Minecraft: Java Edition
Component/s: None
Affects Version/s: Minecraft 1.4.2
Fix Version/s: None

Type: Bug
Reporter: Andrew Beach Assignee: Unassigned
Resolution: Invalid Votes: 0
Labels: None
Environment:

Command block


Confirmation Status: Unconfirmed

 Description   

The command block does not clear a certain amount of block you set it too. It will only clear ALL of the Item. Ex:

/clear @p [ID] -Works
/clear @p [ID] [#] -Doesn't Work

I found this bug when I was trying to make a shop on my vanilla server but I could not clear a certain amount of what I'm using as currency.

Please fix this Bug

-Drew



 Comments   
Comment by Red SameOld [ 28/May/18 ]

We are using 2 command blocks to clear 3 coal from @p on one command block and give 1 iron_ingot on the other but the command will still give an iron_ingot even though it only takes 1 or 2 coal, not 3.

Comment by Unknown [ 16/Apr/18 ]

If you do /clear command with a certain value you want to clear, it's also clear item even though the certain value you chose is lower. Fo example you do /clear @p emerald 10 and you have more than 10 emerald it will only less 10 to your item but if you only have 2 and you want to clear is 10 ot should also work it will clear your 2 emerald. Not a bug

Comment by Mlakuss [ 16/Jul/14 ]

No, if they change the /clear, it will break all old maps and operator are used to use the second parameters for the meta.

Comment by Floedekage [ 07/Jul/13 ]

This should still be considered a bug.
Seeing /clear as the opposite of /give it should have the same possible arguments. So when /give have <name> <item> [amount] [meta], /clear should likewise have <name> [item] [amount] [meta].

I strongly suggest activating this as a bug again.

Comment by Anon Ymus [ 30/Jan/13 ]

It's still a suggestion.

Comment by Nathan R [ 30/Jan/13 ]

If you use /clear (block) (amount) (data) or something along those lines in game ( not from a command block, manually entered, it works fine, please reopen, I want to to something like this too!

Comment by Tails [ 11/Nov/12 ]

Suggestions go to http://www.minecraftforum.net/forum/1-suggestions/. This is not a place for feature requests.

Comment by Andrew Beach [ 11/Nov/12 ]

The they should find a way to clear a certain amount . It would be good for multiple uses in Minecraft. Anyways...

Comment by Kumasasa [ 11/Nov/12 ]

Not a bug. The second value is not the amount, it is the data value AKA damage value of the item.
The clear command will alway clear all items of a kind.

Generated at Sun Jan 12 11:58:54 UTC 2025 using Jira 9.12.2#9120002-sha1:301bf498dd45d800842af0b84230f1bb58606c13.