mojira.dev
MC-88220

Applying the same attribute modifier to multiple slots only affects the last slot

When attempting to create an item that gives an attack bonus in either the main or off hand slot, only the second attribute is applied.

Steps to Reproduce:

  • Create an item with two identical attribute modifiers applied to mainhand and offhand, offhand second

  • Hold item in main hand and attack something - no boost

  • Hold item in off hand and attack something - boost is applied properly

Comments 3

Cannot confirm for 15w37a

Example command

/give @p iron_sword 1 0 {AttributeModifiers:[{Operation:0,UUIDLeast:0l,UUIDMost:0l,Amount:200d,AttributeName:"generic.attackDamage",Name:"sword",Slot:"mainhand"},{Operation:0,UUIDLeast:0l,UUIDMost:0l,Amount:200d,AttributeName:"generic.attackDamage",Name:"sword",Slot:"offhand"}]}

@@unknown: Is this fixed in 15w37a ?

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

Connor Scialdone

(Unassigned)

Unconfirmed

Minecraft 15w36d

Retrieved