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

Custom Model Data can not be higher than 16777216

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • None
    • 1.15.2
    • None
    • Linux Mint Cinnamon: 19.3 Tricia
      Java Version: swt gtk 3.8.2? I think?
    • Unconfirmed
    • (Unassigned)

      Custom Model Data allows 8 digits to be used, but if you go above a certain value (stated in the title) then the ones digit is not accurate. Ex. using 2020005, 2020004, and 2020003 it will choose the higher model as the one to use. I think this is because when it converts digits to floats, floats are less precise, it loses the last digit of information. It seems that only SOME of the numbers work and some don't.

      1. Create a resource pack
      2. Put two models in the resource pack
      3. Set up custom model data for two values that are over 16777216
      4. Load into the game
      5. Give yourself both items
      6. It will display the model with the higher model data value
      7. ???
      8. Profit.

      Possible Fixes: The simplest solution would be giving an error for any value higher than 16777216.

            Unassigned Unassigned
            Hallzmine David Hall
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: