mojira.dev
MC-51739

Health Attribute from armor doesn't go away after the armor is removed.

Adding a health attribute modifier to a piece of armor works as it should until the armor is removed, at which point the health boost remains in place, even though the health bar returns to normal.

http://www.youtube.com/watch?v=vPr41jRoH_M&feature=youtu.be
The health goes from 20 to 40 with the first set of armor, then back to 20 from the fall damage. The second set takes it to 30, and again, the only thing that removes the excess health is fall damage.

Comments 16

Please provide the entire /give command used to create the custom armor.

The attributes were added with MCEdit. And this is the only attribute that does this, none of the others.

In that case.

This ticket is potentially invalid as it probably relates to a modified or 3rd party client, server, or launcher.
Any non-standard client/server/launcher build needs to be taken up with the appropriate team, not Mojang.
Any plugin issues need to be addressed to the creator of the plugin or resource pack.
This site is for addressing issues related to the base unmodded Minecraft; Bukkit, Forge, Optifine, or any other modded system invalidates your ticket, unless the behavior can be reproduced in Vanilla.

This comment is now invalid.

I would like to point out that the attribute modifiers are a part of unmodded vanilla Minecraft, and that there is no way (to my knowledge) of adding those nbt tags to items otherwise.

And here is how it gets added:
inputs = (
("Attribute",
("generic.maxHealth",
"generic.followRange",
"generic.attackDamage",
"generic.movementSpeed",
"generic.knockbackResistance",
those attributes are the same as what is used when summoning mobs with custom attributes, the "generic.xY"'s listed are exactly what the game uses.

6 more comments

Keep in mind it won't be enchanted (it won't glow). Hovering the mouse over the item should say "Iron Chestplate" and then below it "+10 Max Health". Put it on and see if you get 5 more hearts. Also that gives you 5 more EMPTY hearts which you still have to heal to fill up. Also, quitting and reloading your game will drop your health back to 10 hearts full 5 empty, so you'll have to heal them back every time. That's a separate bug and has been reported.

I know. 🙂 I've been working with nbt tags for a while.

Well then I can't think of what's wrong other than what you said (different OS). I'm on Windows 8. Just to be sure I pasted the command into my game and it worked correctly for me (it DID add 2 spaces that weren't there before but they didn't screw it up). EDIT: Oh one thing that's different. When I tested it just now it was in 1.72 not 1.75.

Is this still a concern in the current Minecraft version? If so, please update the affected versions in order to best aid Mojang ensuring bugs are still valid in the latest releases/pre-releases. If this has been done, we can reopen the issue.

Keep in mind that the "Resolved"-Status on this ticket just means "Answered", and that we are waiting for further information on whether this issue still exists or not. We will reopen it as soon as the requested information has been delivered.

Ticket resolved as incomplete, because no answer in a reasonable amount of time (1+ year), if it still happens, please update the ticket.

Galen Dolkas

(Unassigned)

Unconfirmed

Minecraft 1.7.5, Minecraft 14w20b, Minecraft 14w21a, Minecraft 14w21b

Retrieved