I created a command that gives the attribut "generic.movementSpeed" to an Item. I put that item in my off-hand. In both situations the fov and the speed itself worked but then I put the item back in my main-hand.
What I expected to happen was...:
simply nothing (the fov and the speed staied normal)
What actually happened was...:
the fov and the speed disappeared as I put the item back in my main-hand. As I switched the item and switched back again it worked.
It also worked as I relogged and as I opened and closed the chat.
Steps to Reproduce:
1. put the command from the file "Neues Textdokument.txt" in a command-block and power it.
2. make the steps i have done and you can see the bug.
Greatings Leon H.-F.
Linked issues
Comments 3
While this is a duplicate of MC-97087, I did find out why I couldn't reproduce it: I had a clock running that executes the following (exactly as written, no tags specified within):
testfor @a {}
Which saved my player to NBT, including attributes, which can seemingly be used as a work-around to this issue.
Could not reproduce with given command and steps in 16w35a. Modifier remains applied.
Are you wearing any armor that has a modifier with the same UUID?
As well, how exactly are you switching it between mainhand and offhand (are you using the hotkey, through the inventory with click & drag, through inventory with hotkeys, etc.)?
Does this only occur in Creative mode? There are ghost-item issues with the Creative mode inventory (MC-2912, MC-341).