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

Projectiles (snowballs, etc) do not preserve item data if using the item depletes the stack

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • 19w35a
    • Minecraft 19w08b, Minecraft 19w09a, Minecraft 19w11a, Minecraft 19w11b, Minecraft 19w12a, Minecraft 19w12b, Minecraft 19w13a, Minecraft 19w13b, Minecraft 19w14a, Minecraft 19w14b, Minecraft 1.14 Pre-Release 1, Minecraft 1.14 Pre-Release 2, Minecraft 1.14 Pre-Release 4, Minecraft 1.14 Pre-Release 5, Minecraft 1.14, Minecraft 1.14.1 Pre-Release 1, Minecraft 1.14.1, Minecraft 1.14.2 Pre-Release 1, Minecraft 1.14.2 Pre-Release 2, Minecraft 1.14.2 Pre-Release 3, Minecraft 1.14.2 Pre-Release 4, Minecraft 1.14.2, Minecraft 1.14.3, Minecraft 1.14.4 Pre-Release 1, Minecraft 1.14.4 Pre-Release 3, Minecraft 1.14.4 Pre-Release 4, Minecraft 1.14.4 Pre-Release 5, Minecraft 1.14.4 Pre-Release 6, 1.14.4
    • Windows 10, Java Version 1.8.0_201-b09
    • Community Consensus
    • Survival
    • Items

      Under most circumstances, throwing a snowball/ender pearl/egg/what-have-you copies the item's NBT data (name, lore, custom model data). However, if the item being thrown is the last in the stack, then it just throws a regular projectile.

      Steps to Reproduce

      Grab yourself a single snowball and rename it.

      Toss it out.

      Run the command "/data get entity @e[type=snowball,sort=nearest,limit=1] Item"

      Behold the given error message.

      Now, repeat the process with two or more snowballs. Throw exactly one snowball, and repeat the command. Behold the snowball's delicious item data.

        1. Minecraft 1.14.3 Item Data.mp4
          2.23 MB
          DqwertyC
        2. renamed snowball in empty stack.png
          368 kB
          Kirven Avion
        3. renamed snowball in full stack.png
          430 kB
          Kirven Avion

            boq [Mojang] Bartosz Bok
            KirbAvion Kirven Avion
            Votes:
            10 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved:
              CHK: