mojira.dev
MC-70263

/clear dosn't clear item when amount is 0

First place an Armor Stand.
Second use the

/entitydata @e[type=ArmorStand,r=5] {Equipment:[{},{},{},{id:"minecraft:iron_chestplate"},{}]}

Third rightclick the chest plate to get 0 iron chestplates in your inventory

Fourth duplicate it with the pickblock button (middleclick) and put 1 in you armor slot
Fifth use /clear

Result: The 0 iron chestplates in your armor slot are still there.

And yes this bug report is useless because why whould anyone have 0 of an item but it's still a bug

Attachments

Comments 4

I think the fact that you can even have a stack of size 0 is a bug.

Can no longer confirm in 15w49b.

Command is now

/entitydata @e[type=ArmorStand,r=5] {ArmorItems:[{},{},2:{id:"minecraft:iron_chestplate"},{},{}]}

Zero-count item gets cleared with /clear

Fixed between 1.8.1 and 15w49b.

Samuel Kyletoft

(Unassigned)

Community Consensus

Minecraft 1.8-pre3, Minecraft 1.8

Minecraft 15w49b

Retrieved