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: Unresolved
    • None
    • 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

            Unassigned Unassigned
            haykam haykam
            Votes:
            4 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              CHK: