This bug was first found on Minecraft Java Edition 1.20.5
When items with AttributeModifiers (of the same UUID) are placed from other functional slots (head, offhand etc.) onto mainhand slot, the AttributeModifier does not seem to do effect to the owner anymore.
Also tested on Minecraft Java 1.20.2 to have the same issue. This bug can potentially occur in early versions as it seems to be not sourced from the implementation of components
Procedures to Reproduce:
Create any singleplayer vanilla world with cheats on
For versions 1.20.5+, run command in console /give @s minecraft:golden_helmet[minecraft:attribute_modifiers={modifiers:[{type:"minecraft:generic.jump_strength",uuid:[1,1,1,1],operation:"add_value",amount:0.5,name:"jump_boost",slot:"hand"},{type:"minecraft:generic.jump_strength",uuid:[1,1,1,1],operation:"add_value",amount:0.5,name:"jump_boost",slot:"head"}]}] 1
For affected versions prior to 1.20.5, run command in console
/give @s minecraft:golden_helmet{AttributeModifiers:[{AttributeName:"generic.movement_speed",Name:"generic.movement_speed",UUID:[I;1,1,1,1],Slot:mainhand,Operation:0,Amount:0.1},{AttributeName:"generic.movement_speed",Name:"generic.movement_speed",UUID:[I;1,1,1,1],Slot:offhand,Operation:0,Amount:0.1},{AttributeName:"generic.movement_speed",Name:"generic.movement_speed",UUID:[I;1,1,1,1],Slot:head,Operation:0,Amount:0.1}]}
Place the item on offhand or head
Place the item on mainhand directly
Expected Outcome:
The increased generic.jump_strength or generic.movement_speed attribute modifier that affects when on mainhand remains effective
Actual Outcome:
The increased generic.jump_strength or generic.movement_speed attribute modifier that affects when on mainhand is no longer in effect, after displacing it from head slot or offhand.
Video Demonstration (see comments)
The affection of AttributeModifiers was tested using the generic.jump_strength attribute. On Minecraft Java 1.20.2, generic.movement_speed was used instead
Command Lines used:
"different uuid": /give @p minecraft:golden_helmet{AttributeModifiers:[
{AttributeName:"generic.movement_speed",Name:"generic.movement_speed",UUID:[I;1,1,1,1],Slot:mainhand,Operation:0,Amount:0.1}
,
{AttributeName:"generic.movement_speed",Name:"generic.movement_speed",UUID:[I;1,1,1,2],Slot:offhand,Operation:0,Amount:0.1}
,
{AttributeName:"generic.movement_speed",Name:"generic.movement_speed",UUID:[I;1,1,1,3],Slot:head,Operation:0,Amount:0.1}
]}
"same uuid": /give @p minecraft:golden_helmet{AttributeModifiers:[
{AttributeName:"generic.movement_speed",Name:"generic.movement_speed",UUID:[I;1,1,1,1],Slot:mainhand,Operation:0,Amount:0.1}
,
{AttributeName:"generic.movement_speed",Name:"generic.movement_speed",UUID:[I;1,1,1,1],Slot:offhand,Operation:0,Amount:0.1}
,
{AttributeName:"generic.movement_speed",Name:"generic.movement_speed",UUID:[I;1,1,1,1],Slot:head,Operation:0,Amount:0.1}
]}
"slot: hand": /give @p minecraft:phantom_membrane[minecraft:attribute_modifiers={modifiers:[
{type:"minecraft:generic.jump_strength",uuid:[0,9,0,1952],operation:"add_value",amount:0.5,name:"op_jump",slot:"hand"}
]},minecraft:max_stack_size=1] 1
"slot: mainhand": /give @p minecraft:phantom_membrane[minecraft:attribute_modifiers={modifiers:[
{type:"minecraft:generic.jump_strength",uuid:[0,9,0,1952],operation:"add_value",amount:0.5,name:"op_jump",slot:"mainhand"}
]},minecraft:max_stack_size=1] 1
"slot: offhand": /give @p minecraft:phantom_membrane[minecraft:attribute_modifiers={modifiers:[
{type:"minecraft:generic.jump_strength",uuid:[0,9,0,1952],operation:"add_value",amount:0.5,name:"op_jump",slot:"mainhand"}
,
{type:"minecraft:generic.jump_strength",uuid:[0,9,0,1952],operation:"add_value",amount:0.5,name:"op_jump",slot:"offhand"}
]},minecraft:max_stack_size=1] 1
Linked issues
Comments 4
"Actual Outcome:
The increased generic.jump_strength or generic.movement_speed attribute modifier that affects when on mainhand is no longer in effect, after displacing it from head slot or offhand."
This sounds like MC-97087, would that describe your issue?
Yes, it does seem to be a duplicate of MC-97087. thanks for the link.
Thank you for your report!
We're tracking this issue in MC-97087, so this ticket is being resolved and linked as a duplicate.
If you would like to add a vote and any extra information to the main ticket it would be appreciated.
If you haven't already, you might like to make use of the search feature to see if the issue has already been mentioned.
Quick Links:
📓 Bug Tracker Guidelines – 💬 Community Support – 📧 Mojang Support (Technical Issues) – 📧 Microsoft Support (Account Issues)
📓 Project Summary – ✍️ Feedback and Suggestions – 📖 Game Wiki
-- I am a bot. This action was performed automatically! The ticket was resolved by one of our moderators, and I left this message to give more information to you.
Demonstration of this bug (video): (via OneDrive)
https://1drv.ms/f/c/57ca4b0ee031ee7a/EnQ7hEqNGuxGnqAmxI3iHtYBswH6wd1vdX4kkrMA7dZl0w?e=WDHuPa