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

NBT Text Field Order Randomized

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • None
    • 1.15.2
    • None
    • Java 1.8.0_241
    • Unconfirmed
    • (Unassigned)

      In trying to use the nbt target selectors on data with a string field, particularly named items, the ordering of the text entries seems to randomize, breaking the commands that are meant to test for such items.

       

      e.g. if I create an item with the nbt field {display:{Name:'{"text":"Blacksmith Chestplate","color":"black"}'}} and then use commands to search for items with this nbt tag, sometimes the commands fail as the items have randomly switched their nbt to {display:{Name:'{"color":"black","text":"Blacksmith Chestplate"}'}} (which is NOT treated the same by the nbt target selector).

       

      This is particularly prevalent sometimes when switching things in inventory around, changing gamemodes, or copying the items in creative mode.

            Unassigned Unassigned
            LesJespers Julian Espada
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: