mojira.dev
MC-100933

Attributes remove attackSpeed, adding attackSpeed doesn't fix it.

When I give an item an attribute it removes the attackSpeed. The attackDamage attribute does work as far as I tested. Adding an attackSpeed doesn't fix the issue. Thank you.

Command in question;

/give @a minecraft:iron_axe 1 0 {AttributeModifiers:[{AttributeName:"generic.attackDamage",Name:"generic.attackDamage",Amount:10.0,Operation:0,UUIDLeast:671851,UUIDMost:718339,Slot:"mainhand"},{AttributeName:"generic.attackSpeed",Name:"generic.attackSpeed",Amount:0.9,Operation:0,UUIDLeast:601253,UUIDMost:804553,Slot:"mainhand"}],display:{Name:"DRAKONIAN AXE",Lore:["To greet those you love and murder those you hate!" ]},ench:[{id:34,lvl:10}]}

Test Command;

/give @a minecraft:diamond_sword 1 0 {AttributeModifiers:[{AttributeName:"generic.attackDamage",Name:"generic.attackDamage",Amount:1,Operation:0,UUIDLeast:953053,UUIDMost:575935,Slot:"mainhand"},{AttributeName:"generic.attackSpeed",Name:"generic.attackSpeed",Amount:0.9,Operation:0,UUIDLeast:890391,UUIDMost:507755,Slot:"mainhand"}],display:{Name:"TEST"}}

Comments 3

The value of the attack speed attribute means "seconds per fully charged hit", highering the value makes it go slower, lowering it makes it go faster.

Ok, My bad but that doesn't explain why there isn't a cooldown when you only add the attackDamage attribute.

That is intended, when providing the AttributeMidifiers tag it removes the default values, so provinding a diamond sword with a empty attribute modifiers list will make a sword which acts exactly like a fist by damage and speed means.

Smitje

(Unassigned)

Unconfirmed

Minecraft 1.9.2, Minecraft 16w15b

Retrieved