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

Banner patterns are not sorted in any meaningful manner in the creative menu

XMLWordPrintable

    • Confirmed
    • Inventory

      Unlike another similar item-- pottery sherds, the different banner patterns are not sorted in any meaningful way. Instead, they are seemingly sorted randomly. This is likely due to the fact that banner patterns are all named "Banner Pattern" without their type in the actual name, but instead listed in the description.

      Code Analysis:

      Here, all of the banner patterns are added in manually to the list of items, meaning the order they are added can be manually sorted / chosen.
      (Mojmap 24w11, in class CreativeModeTabs.java, inside the registry for the 'Ingredients' creative tab group)

      ...
      Registry.register(var0, INGREDIENTS, CreativeModeTab.builder(CreativeModeTab.Row.BOTTOM, 3).title(Component.translatable("itemGroup.ingredients")).icon(() -> {
               return new ItemStack(Items.IRON_INGOT);
            }).displayItems((var0x, var1) -> {
      . . .
               var1.accept(Items.FLOWER_BANNER_PATTERN);
               var1.accept(Items.CREEPER_BANNER_PATTERN);
               var1.accept(Items.SKULL_BANNER_PATTERN);
               var1.accept(Items.MOJANG_BANNER_PATTERN);
               var1.accept(Items.GLOBE_BANNER_PATTERN);
               var1.accept(Items.PIGLIN_BANNER_PATTERN);
               var1.accept(Items.FLOW_BANNER_PATTERN);
               var1.accept(Items.GUSTER_BANNER_PATTERN);
      . . .
               });
            }).build());
      ...
      

      Fix:

      Rarity & Alphabetically:

      Thing, Creeper Charge, Skull Charge, Flow, Flower Charge, Globe, Guster, Snout

      . . .
               var1.accept(Items.MOJANG_BANNER_PATTERN);
               var1.accept(Items.CREEPER_BANNER_PATTERN);
               var1.accept(Items.SKULL_BANNER_PATTERN);
               var1.accept(Items.FLOW_BANNER_PATTERN);
               var1.accept(Items.FLOWER_BANNER_PATTERN);
               var1.accept(Items.GLOBE_BANNER_PATTERN);
               var1.accept(Items.GUSTER_BANNER_PATTERN);
               var1.accept(Items.PIGLIN_BANNER_PATTERN);
      . . .
      

      Alphabetically:

      Creeper Charge, Flow, Flower Charge, Globe, Guster, Skull Charge, Snout, Thing

      . . .
               var1.accept(Items.CREEPER_BANNER_PATTERN);
               var1.accept(Items.FLOW_BANNER_PATTERN);
               var1.accept(Items.FLOWER_BANNER_PATTERN);
               var1.accept(Items.GLOBE_BANNER_PATTERN);
               var1.accept(Items.GUSTER_BANNER_PATTERN);
               var1.accept(Items.SKULL_BANNER_PATTERN);
               var1.accept(Items.PIGLIN_BANNER_PATTERN);
               var1.accept(Items.MOJANG_BANNER_PATTERN);
      . . .
      

            Unassigned Unassigned
            Jingy [Mod] Jiingy
            Votes:
            5 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              CHK: