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

Crash with set_lore item modifier setting more than 256 lores

XMLWordPrintable

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

      Summary
      Since 24w09a, there exists a cap on the number of lores an item stack can have. In 24w10a and later, it is 256. However, set_lore item modifier was not changed to limit the number of lores set, resulting in crashes in the same way as MC-269336, by adding 257 lores to the item stack.

      Note that unlike MC-269336, the item stack also fails to serialize over the network, kicking any player that sees this item stack, and in singleplayer, instantly crashing the server (as the world tries to save, unsuccessfully).

      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:257_lores

      Expected Result
      The game does not crash.

      Actual Result
      The player gets kicked and the game crashes

        1. crash-2024-03-15_22.27.25-server.txt
          4 kB
          apple502j
        2. deobf_crash-2024-03-15_22.27.25-server.txt
          8 kB
          [Bot] Arisa
        3. latest.log
          17 kB
          apple502j
        4. Minecraft 24w11a - Singleplayer 2024-03-15 22-27-12.mp4
          4.55 MB
          apple502j

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

              Created:
              Updated:
              Resolved:
              CHK: