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

Can't add custom attributes to items.

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Invalid
    • None
    • 20w18a
    • None
    • Unconfirmed
    • (Unassigned)

      In the latest snapshots, I can't add custom attributes to items. For example, if I type in the command: "/give @p wooden_sword{AttributeModifiers:[

      {AttributeName:generic.armor,Amount:5,Operation:0,UUIDLeast:120632100,UUIDMost:99,Slot:mainhand,Name:generic.armor}

      ]}" I get a wooden sword that gives me + 5 defence when in the main hand.

      However, if I type in this command in the latest snapshots, it doesn't work.
      I have included images of it working on 1.15.2 and not working in 20w18a.

      Edit: it is possible to transfer the items from version to version, the command does not work though.

        1. 2020-04-30_12.31.31.png
          341 kB
          John Johnathon
        2. 2020-04-30_12.31.45.png
          290 kB
          John Johnathon
        3. 2020-04-30_12.36.21.png
          349 kB
          John Johnathon
        4. 2020-04-30_12.36.43.png
          265 kB
          John Johnathon

            Unassigned Unassigned
            TheUltraMidget John Johnathon
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: