mojira.dev
MC-96811

Attribute AttackDamage and Sharpness Sword still shows the Amount of the Attribute in the tooltip.

The bug

If you take a Sword with the AttributeModifier AttackDamage and set it for example to +6 (Amount: 6, Operation:0) and enchant it for example to sharpness lvl: 5, the tooltip will still show the amount of the attribute (+6)

and not what it really causes damage when you hit an entity using it.

/give @p diamond_sword{Enchantments:[{id:sharpness,lvl:5}],AttributeModifiers:[{AttributeName:generic.attack_damage,Amount:6,Slot:mainhand,UUID:[I;1,2,3,4]}]}

Linked issues

Attachments

Comments 13

OK checked this in 16w06a: still in the game.

Ok and in 1.9pre1 and 16w07b: It's still in the game... And this is still unassigned!

No difference to compared to pre3 I have more attackDamage than shown...

Is this still an issue in the most recent versions (currently that is 1.10.2, or 16w42a) of Minecraft? If so, please update the affected versions and help us keeping this ticket updated from time to time. If you are the owner/reporter of this ticket, you can modify the affected version(s) yourself.

Relates to MC-67885. The problem is rather that it does not show how much damage it is actually dealing. "+6 Attack Damage" or "+120% Attack Damage" is not really helpful if you don't know how much attack damage the item had to begin with.
Edit: That part is now MC-113552.

3 more comments

Can confirm in 21w05b.

Can confirm in 21w07a.

Can confirm in 1.16.5 and 21w08b.

Can confirm in 21w11a.

Can confirm in 1.17.

Nicolas Bachschwell

(Unassigned)

Confirmed

(Unassigned)

Minecraft 1.8.9, Minecraft 16w05b, Minecraft 16w06a, Minecraft 16w07b, Minecraft 1.9 Pre-Release 1, ..., 21w05b, 21w07a, 21w08b, 21w11a, 1.17

Retrieved