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.

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

              Created:
              Updated:
              Resolved:
              CHK: