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

The enchantment level is stored with a higher data type than it should.

    XMLWordPrintable

Details

    • Bug
    • Status: Open
    • Resolution: Unresolved
    • 1.17.1, 1.18
    • None
    • Confirmed
    • (Unassigned)

    Description

      Enchantments since 1.17.1 Pre-release 1 have an unsigned byte range (0 to 255) but are still saved as short (-32768 to 32767)

      {Enchantments:[{id:"minecraft:aqua_affinity",lvl:255s}]}

      You can see that "s" is used in the number that means short

       

      Although it is true that the byte type data ("b") is from -128 to 127, so I think a new data type should be added that is unsigned byte ("ub"?)

      Attachments

        Activity

          People

            Unassigned Unassigned
            Zailer43 Zailer43
            Votes:
            1 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              CHK: