Attribute modifiers ignore items when switched back to main hand
from being in off hand
Linked issues
Comments 7
Not OP, but I have a repro in release 1.9:
1.
/give @p minecraft:iron_axe 1 1 {AttributeModifiers:[{AttributeName:"generic.movementSpeed",Name:"generic.movementSpeed",Amount:-.5,Operation:1,UUIDMost:85983,UUIDLeast:109479}]}
2. Switch to the axe. Notice that you are slowed down (FoV decreases).
3. Press F (default bindings) to put the axe in your off hand. No change to speed or FoV.
4. Press F again to put the axe back into your main hand. Notice that FoV and speed go back to normal (not affected by axe).
Still occurs for me on pre2: https://gfycat.com/AnotherReasonableFlyingsquirrel (I was testing on 1.9 release.)
Dupe of MC-97087
Cannot reproduce in both 15w39c and 15w40b, can you give the EXACT command you use to give you the item with attribute modifiers, and the EXACT step by step of what you are doing with this item in your inventory.