mojira.dev
MC-92685

Attributes dont apply instantly

when switching form any normal item to one with attributes, when switching and a very brief moment later hiting something, the attributes of the item switched to are not applied, although the enchantments are applied. (As a side note this can be tricky to pull of and I've only tested with the attack damage attribute since the otherones are not responsible for damage) If someone would like to test this to further confirm this bug I'll leave the command for the sword i used underneath my post.

(requires commandblocks /give @p minecraft:command_block)

/give @p minecraft:diamond_sword 1 0 {AttributeModifiers:[{AttributeName:"generic.attackDamage",Name:"generic.attackDamage",Amount:9999,Operation:0,UUIDLeast:307806,UUIDMost:856305,Slot:"mainhand"},{AttributeName:"generic.attackSpeed",Name:"generic.attackSpeed",Amount:1024,Operation:0,UUIDLeast:307800,UUIDMost:856300,Slot:"mainhand"}],ench:[{id:20,lvl:1}]}

Linked issues

Comments 6

I apologize if this sounds confusing. I tried my best at explaning it, but its a kinda wierd bug.

tested in 15w47b. still confirmed

I can also confirm this. Easy to see if you equip a piece of armour, the armour bars appear a short but noticeable amount of time after you equipped the item. Confirmed 15w47c.

Confirmed for 16w06a

Colton Jelsema

Can be seen when using an item that boosts max health and then relogging onto world. When joining the world, your health will be reset to the base max health of 20 before your max health is increased.
Example item:

give @p iron_boots 1 0 {AttributeModifiers:[{Slot:feet,Operation:0,UUIDLeast:1,UUIDMost:1,AttributeName:generic.maxHealth,Amount:10,Name:CG}]}

also, confirmed for 16w41a

Thank you for your report!
However, this issue has been closed as a Duplicate of MC-28289.

It has been linked to this report. If you have additional information, please add it to that report.
Please search before reporting, as it's likely that one exists already.

Quick Links:
📓 Issue Guidelines – 💬 Community Support – 📧 Customer Support – 📖 Game Wiki

TomJo2000

(Unassigned)

Confirmed

Minecraft 1.8.8, Minecraft 15w46a, Minecraft 15w47b, Minecraft 15w47c, Minecraft 1.8.9, Minecraft 16w06a, Minecraft 16w41a, Minecraft 16w42a

Retrieved