mojira.dev
MC-78128

Item with AttributeModifiers on generic.attackDamage does not change Attack Damage when given along with a Sharpness enchantment

When using this command,
/give @p diamond_axe 1 0 {ench:[{id:16,lvl:6}],display:{Lore:["Secret Weapon"]},AttributeModifiers:[{Operation:0,UUIDLeast:1,UUIDMost:1,AttributeName:generic.attackDamage,Amount:14.25,Name:attack1},{Operation:1,UUIDLeast:1,UUIDMost:1,AttributeName:generic.movementSpeed,Amount:0.46,Name:speed1}]}

The diamond axe given should have only dealt 14.25 damage on a mob (Villager), but kills the Villager in one shot of the axe. When removing the "ench" part, it will deal the normal amount of health it should have dealt without the sharpness.

/give @p diamond_axe 1 0 {ench:[],display:{Lore:["Secret Weapon"]},AttributeModifiers:[{Operation:0,UUIDLeast:1,UUIDMost:1,AttributeName:generic.attackDamage,Amount:14.25,Name:attack1},{Operation:1,UUIDLeast:1,UUIDMost:1,AttributeName:generic.movementSpeed,Amount:0.46,Name:speed1}]}

Linked issues

Comments 2

So by that, you mean that sharpness and attackDamage do not combine on each other? But, in my case, if you use the first command, it will give you an axe writing,

Diamond Axe
Sharpness VI
Secret Weapon

+14.25 Attack Damage
+46% Speed

When it gives you the axe with sharpness, it does not combine 7.5 extra damage dealt by sharpness with the n+Attack Damage, where n is the number of any attack damage possible, but it will still act as if it counts the Sharpness along with it when the n+Attack Damage does not change.

Tan Chin Cheern

(Unassigned)

Unconfirmed

Minecraft 1.8.3

Retrieved