-
Bug
-
Resolution: Unresolved
-
None
-
1.20.4, 24w11a, 24w12a, 24w13a, 1.20.5 Pre-Release 1, 1.20.5 Release Candidate 1, 1.21, 24w33a, 1.21.1, 1.21.3, 24w45a
-
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); . . .
- relates to
-
MC-200786 Advancement tab ordering is arbitrary
- Open
-
MC-107379 Spawn Eggs of new Mobs are not sorted alphabetically in Creative Inventory
- Resolved
-
MC-123739 Recipe book entries are no longer sorted in any meaningful manner
- Resolved
-
MC-171130 Hoglin spawn egg is not sorted alphabetically in the Creative menu
- Resolved
-
MC-239408 Incorrect alphabetical sorting of music discs in creative inventory
- Resolved
-
MC-266455 Breeze spawn eggs are in the incorrect place in the creative inventory
- Resolved