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

Components are sensitive to list order

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Works As Intended
    • None
    • 24w09a
    • None
    • Confirmed
    • (Unassigned)

      Expected behavior:
      Component selectors check if all list items are present.

      What actually happens:
      The selector checks for order as well, which may be arbitrary.

      To reproduce:

      1. Take 2 bundles and 2 of any 2 stackable items.
      2. Place 1 of each item into both bundles, in different orders.
      3. Run the following command. Only 1 of the bundles is matched.
      /clear @s bundle[bundle_contents=[{id:"itemA"},{id:"itemB"}]] 0

      Note:
      I believe that testing for order can be useful as well (e.g. place items into a bundle in a specific order to enter a password), so perhaps a way to do both is needed.

            Unassigned Unassigned
            korochun Michael Gavrilin
            Votes:
            1 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              CHK: