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

Custom enchantment with very large max level causes game to hang after opening Creative inventory

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • 24w20a
    • 24w18a
    • None
    • Community Consensus
    • Data Packs, Enchantments
    • Important
    • Platform

      The maximum level of enchantment inside the data pack is 2147483647, even though enchantments with levels 256 or more cannot be applied to anything. Specifying that, however, is enough to cause the game to hang.

      Steps to Reproduce

      1. Add the attached data pack.
      2. Open the Creative inventory.

      Expected Result
      The data pack should fail to load; the maximum level of an enchantment that can be applied to an item is 255.

      Actual Result
      Game hangs while it tries to generate 2 billion enchanted books.

            slicedlime [Mojang] slicedlime
            apple502j apple502j
            Votes:
            1 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:
              CHK: