Uploaded image for project: 'Minecraft: Java Edition'
  1. Minecraft: Java Edition
  2. MC-267500

Attribute modifier on an item with the first and/or last 2 integers of the UUID being 0 are non-functional

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • 24w09a
    • 1.20.4, 23w51b
    • None
    • Confirmed
    • Commands
    • Normal
    • Platform

      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

            gegy1000 [Mojang] Gegy
            jirauser71590 user-f2760 (Inactive)
            Votes:
            3 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved:
              CHK: