mojira.dev
MC-10112

/clear with command blocks not working with armor that has been worn with custom damage values.

I have a command block that gives me an iron chestplate with damage -32000. I also have another command block saying /clear @p. Without equipping the chestplate /clear works ok. But when I wear the armor and take it off again /clear doesn't work. Also tested with chain helmet and leather pants.

Linked issues

Comments 33

Confirmed

Also, you can not interact with the armor. It becomes a ghost item, You can't drop it in any way.

If you try to move it around in your inventory in survival it will disappear.

Oh I forgot to say that, thanks.

Uhm... Fixed this, but probably not the way you hoped for =) I've made it impossible to create items with negative damage values, because the behavior is undefined. Will compensate by adding some kind of "indestructible" enchantment for this purpose in the future.

Will you do it for 1.5? If no, mapmakers gonna have a bad time :/

First of all, Jeb actually saw this! That was awesome. But the damage value fix sucks really bad, just because a gold helmet and a chain helmet are the only two armor with the exact same protection values, but gold has way less durability. This is a bit of a problem. But the fact that Jeb, someone from mojang actually saw this almost makes up for it. (I say almost because I hope they will fully support custom data values) 🙂

23 more comments

I totally agree with the suggestions. The custom damages are VERY important to us.

...I just want unbreakable swords.

This problem needs to be solved soon. It's breaking a ton of maps. We NEED (I repeat: NEED) the custom damage values. It was permissible before, its just that the behaviour is a bit weird. I think the undefined behaviour needs to be fixed rather than the custom damages completely removed.

I agree with the people saying that we need negative damage values. I use them. And so do a lot of people. An "indestructible" boolean cannot be given by command blocks without the inclusion of the givechest (http://www.minecraftforum.net/topic/1561812-now-that-we-have-the-command-block/) Just undo this fix and re-fix it by editing the clear command.

Closed. This is no discussion forum here.

Eugene Lee

Jens Bergensten

Confirmed

Minecraft 1.4.7, Snapshot 13w09a

Snapshot 13w09b

Retrieved