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

Selectors have inconsistent return order

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Resolution: Fixed
    • Affects Version/s: Minecraft 1.13.2, Minecraft 19w08a, Minecraft 19w08b, Minecraft 19w09a, Minecraft 19w11a, Minecraft 19w11b, Minecraft 19w12a, Minecraft 19w12b, Minecraft 19w13a, Minecraft 19w13b, Minecraft 19w14a, Minecraft 19w14b, Minecraft 1.14 Pre-Release 1, Minecraft 1.14 Pre-Release 2
    • Fix Version/s: Minecraft 1.14.1
    • Labels:
      None
    • Confirmation Status:
      Unconfirmed
    • Category:
      (Unassigned)

      Description

      The return order for selectors is no longer consistent. I am unsure as to whether or not this is works as intended / invalid, as the default sort setting sort=arbitrary makes no promises regarding return order. However, prior to 19w08a, the return order would always be "oldest first".

      To demonstrate this:

      1. create a new superflat world without any entities.
      2. Summon a chicken, cow, pig, and sheep, in that order
      3. Run the following command: /execute as @e run say @s

      If you do this in 19w07a, the output is always

      [Playername] Playername
      [Chicken] Chicken
      [Cow] Cow
      [Pig] Pig
      [Sheep] Sheep
      

      However, if done in 19w08a, the output varies.

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              elyg Ely G
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: