Attribute modifiers randomly run out when given via items
When wearing armor with attributes on them, sometimes they'll just run out, even when you still have the armor on.
Created Issue:
Attributes randomly run out
When wearing armor with attributes on them, sometimes they'll just run out, even when you still have the armor on.
is duplicated by
is duplicated by
is duplicated by
is duplicated by
Attributes randomly run out when given via items
Attribute modifiers randomly run out when given via items
Duplicate of MC-16467, please use the search function to see if your bug has already been submitted. Currently over 57% of tickets are being closed as duplicate.
Duplicate of MC-16467, please use the search function to see if your bug has already been submitted. Currently over 57% of tickets are being closed as duplicate.
Ok after a while the zombie lost his attributes, so I believe this is the same issue as MC-16467 which is already assigned.
Does the zombie lose its attributes simply as time passes? Because teleporting away from the mob and back has consistently gotten the bug to happen for me, without any meaningful amount of time passed. Attributes vanishing over time could be MC-16467, but it seems distance can also cause Attribute loss.
Also, can this please be marked "Confirmed", or at least "Community Consensus"? Thank you.
Possibly related to MC-16467, which I see Gerrard has commented may be related to this. Anyone have ideas on how to determine why this is happening? Are the attributes no longer present on the entity, or just no longer functional? Matthias's comment on MC-16467 would suggest that the attributes are being saved, because they reactivate when reloading the world. So some random, regular event is recalculating the final stats inappropriately or overwriting them.
I've managed to reproduce attributes vanishing over time and returning upon world reload. I've also reproduced an entity which did not lose its attributes even after I teleported away and back. I have no idea why it didn't happen before - perhaps the issue is just incredibly random.
I suppose MC-16467 is the correct bug then; as long as the version tags on that are updated, this can be closed as a duplicate unless somebody can find evidence that distance does make entities more likely to lose their attributes.
You can force this to happen by switching to or from an item that modifies the same attribute in your hand.
But it's still a bug though...
Yes, I was just giving an easy repro.
The same happen to Mobs, when you give them items with custom attributes on it. Best for testing is to modify the speed attribute modfier on an item(for example +0.2145). If you pass this to an zombie, his speed will increase, but randomly jump pack to the default speed of the zombie and stay there. If you leave the world and load it again, the zombie will increase his speed again.
May be related to
MC-16279. I've noticed inMC-16279that mobs are guaranteed to lose their Attribute Modifiers if you wander a certain distance from them. As to what condition causes players to lose attributes, I have no clue.Confirmed for 13w25b.
Confirmed for 13w25c.
re-open? Confirmed in 15w43c
Also seems "Pause/Game menu" causes it to stop working too.
Cam, between the changes to the attribute system, and the additional cause, that's likely a new issue, although similar to this one. Please file a new issue, and provide steps to reproduce.