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

Crash with set_enchantments item modifier above level 255

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • 24w12a
    • 24w10a, 24w11a
    • None
    • Plausible
    • Crash, Enchantments
    • Very Important
    • Platform

      Summary
      set_enchantments item modifier accepts enchantment levels above 255. Applying said item modifier and saving the item stack causes the game to crash because enchantment levels above 255 can no longer be saved after 24w09a.

      Steps to Reproduce

      1. Add the attached data pack.
      2. Get a random item on the hotbar.
      3. Run /item modify entity @s hotbar.0 test:level_256
      4. Pause the game to save

      Expected Result
      The command response is sent and the game does not crash.

      Actual Result
      The command response cannot be delivered, and the game crashes upon saving.

        1. crash-2024-03-14_13.35.29-server.txt
          4 kB
          apple502j
        2. deobf_crash-2024-03-14_13.35.29-server.txt
          7 kB
          [Bot] Arisa
        3. latest.log
          11 kB
          apple502j
        4. Minecraft 24w10a - Singleplayer 2024-03-14 13-35-02.mp4
          8.36 MB
          apple502j

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

              Created:
              Updated:
              Resolved:
              CHK: