Attribute modifier on an item with the first and/or last 2 integers of the UUID being 0 are non-functional
Pretty straightforward:
/give @s stick{AttributeModifiers:[{AttributeName:"minecraft:generic.movement_speed",Name:"test",Amount:0.5d,Operation:0,UUID:[I;0,0,0,0],Slot:"mainhand"}]}
/give @s stick{AttributeModifiers:[{AttributeName:"minecraft:generic.movement_speed",Name:"test",Amount:0.5d,Operation:0,UUID:[I;0,0,0,1],Slot:"mainhand"}]}
/give @s stick{AttributeModifiers:[{AttributeName:"minecraft:generic.movement_speed",Name:"test",Amount:0.5d,Operation:0,UUID:[I;0,0,1,1],Slot:"mainhand"}]}
/give @s stick{AttributeModifiers:[{AttributeName:"minecraft:generic.movement_speed",Name:"test",Amount:0.5d,Operation:0,UUID:[I;0,1,1,1],Slot:"mainhand"}]}
/give @s stick{AttributeModifiers:[{AttributeName:"minecraft:generic.movement_speed",Name:"test",Amount:0.5d,Operation:0,UUID:[I;0,1,1,0],Slot:"mainhand"}]}
/give @s stick{AttributeModifiers:[{AttributeName:"minecraft:generic.movement_speed",Name:"test",Amount:0.5d,Operation:0,UUID:[I;0,1,0,0],Slot:"mainhand"}]}
/give @s stick{AttributeModifiers:[{AttributeName:"minecraft:generic.movement_speed",Name:"test",Amount:0.5d,Operation:0,UUID:[I;0,1,0,1],Slot:"mainhand"}]}
Observe how only a few of those items have a functional attribute modifier (note, only difference between the commands is the UUID)
Functional commands: 4, 5, 7
Non-functional commands: 1, 2, 3, 6
2023-12-21, 04:32 PM
2024-02-27, 09:29 AM
2024-02-27, 09:29 AM
3
3