mojira.dev
MC-108425

Attribute modifiers not being removed correctly

The bug

Attribute Modifiers not being removed correctly.

How to reproduce

  1. Go to y=150

  2. Place a block under you using:

    /setblock ~ ~-1 ~ stone
  3. Get an item that applies an extremely high speed boost. For example:

    /give @p golden_boots 1 0 {AttributeModifiers:[{AttributeName:"generic.movementSpeed",Name:"speed",Amount:100,Operation:0,UUIDLeast:734432,UUIDMost:4374733,Slot:"feet"}]}
  4. Equip the item

  5. Stand on the block and hold down the move forward key for about 5 seconds.

  6. Remove the item. The speed boost will remain.

Linked issues

Comments 8

Confirmed, with an exception.
Demonstration in this video here: https://www.youtube.com/watch?v=eJHoUBWNZL4

Steps to reproduce

  • Make a flatworld, e.g. the default grassy one

  • Get an item with high speed boost; I simply used the one the OP provided:

    /give @p golden_boots 1 0 {AttributeModifiers:[{AttributeName:"generic.movementSpeed",Name:"speed",Amount:100,Operation:0,UUIDLeast:734432,UUIDMost:4374733,Slot:"feet"}]}
  • Equip the item

  • Hold down your forward key for a couple of seconds, I personally just ran a bit more than 16.000 blocks just to make sure the effect sets in

  • Remove the item

  • Walk forward again and notice that, although you have not the item equipped anymore at your feet, you still have the speed boost.. BUT:

As you can see in the video, apparently as soon as you died this does not happen anymore, for some reason.
I killed myself, equipped the item again, and even though I ran the same amount of blocks like before, it got rid of the speed boost as soon as I removed the item from my feet.

Cannot reproduce in 1.12.2.
Is this still an issue in the most recent versions (currently that is 1.12.2) of Minecraft?

I could reproduce it in 1.12.2 release with the method I mentioned in my comment from 10th October 2016, but it's gotten quasi worse than before: Whereas in 16w40 this bug did not occur anymore as soon as I died, it now is also persistent after I killed myself.

Quick proof video: https://youtu.be/9gsFEnDbnGY

Ruben te Wierik

Confirmed for 18w11a

Confirmed for 18w21b.
Command changed to:

/give @s golden_boots{AttributeModifiers:[{AttributeName:"generic.movementSpeed",Name:"speed",Amount:100,Operation:0,UUIDLeast:734432,UUIDMost:4374733,Slot:"feet"}]}

Confirmed for 1.13.1.

Cannot reproduce in 1.14 prerelease 5. Please comment if this is still an issue

Silly511

(Unassigned)

Community Consensus

(Unassigned)

Minecraft 16w40a, Minecraft 1.12.1, Minecraft 1.12.2 Pre-Release 1, Minecraft 1.12.2 Pre-Release 2, Minecraft 1.12.2, Minecraft 18w11a, Minecraft 18w21b, Minecraft 1.13.1

Retrieved