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

Trim materials item tag is not deterministic in data generation

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • 1.21.4 Pre-Release 2
    • 1.21.4 Pre-Release 1
    • None
    • Confirmed
    • Data Packs
    • Normal
    • 1332594
    • Expansion A

      The code used to generate the trim materials item tag is not deterministic. As a result, each version of Minecraft will have a different order for the item tag. The relevant portion of the item tag data generator is as follows:

      registries.getOrThrow(RegistryKeys.TRIM_MATERIAL)
               .streamEntries()
               .forEach(entry -> this.getOrCreateTagBuilder(ItemTags.TRIM_MATERIALS).add(entry.value().ingredient().value()));
      

      An example can be seen on Misode's mcmeta repository.

      Previous reports of this nature have been considered valid: MC-268580, MC-270818

            gnembon [Mojang] Gnembon
            haykam haykam
            Votes:
            4 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:
              CHK: