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

Chiseled bookshelf model is not deterministic in data generation

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • 24w09a
    • 24w07a
    • None
    • Confirmed
    • Data Packs, Textures and models
    • Low
    • Platform

      The order of directions used to generate the assets/minecraft/blockstates/chiseled_bookshelf.json file uses an unsorted map which causes overrides to be written to the model in an arbitrary order. As a result, the data generator cannot be used to consistently get an equivalent output as what is bundled within the JAR, even if different orders are functionally the same within the game. I would expect the data generator to give 100% reproducible output.

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

      Code analysis (Yarn mappings)

      The relevant code appears to be the Map.of call in the BlockStateModelGenerator#registerChiseledBookshelf method. A fix would be to use a list of pairs rather than a map, like what is used for the occupied slots.

            slicedlime [Mojang] slicedlime
            haykam haykam
            Votes:
            2 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved:
              CHK: