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

Enchantments are capped at level 255

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Works As Intended
    • None
    • 1.17.1
    • None
    • Java 16.0.1 on Windows
    • Unconfirmed

      Enchantments are capped at level 255, both functioning and displaying as such. Despite this, items with high enchant levels (255-2,147,483,647) still have their correct level displayed in NBT data.

      What I expected to happen was...:
      When given a item with a valid high level enchant, it should function at the level intended like previous versions. All levels up to the programmed limit of 2,147,483,647 should function as normal.

      What actually happened was...:
      Instead, any level that exceeds the level 255 gets capped and brought back down to 255, resulting in a weaker effect compared to what was intended. 

      Steps to Reproduce:
      1. Run the command +/give @p diamond_sword{Enchantments:[

      {id:"sharpness",lvl:50000}

      ]}+
      2. Hover over the item, you will see that the enchantment level displays as level 255.
      3. If you summon a mob with high health such as the command , you will not be able to instantly kill it.

      4. If you run , you will see that the item's data displays the enchantment level as intended. This issue applies to all enchantments and items.

            Unassigned Unassigned
            6_Black_Bird_6 6_Black_Bird_6
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: