mojira.dev
MC-144688

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

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.

Linked issues

Attachments

Comments 11

Still in 19w14b and 1.14 Pre-Release 1

Still in 1.14 Pre-Release 2

Still in 1.14 pre-5

Still in 1.14 Release

1 more comments

Please do not mark unreleased versions as affected.
You don't have access to them yet.

Still in 1.14.1 Release

Well the 14.1 pre-release literally wasn't an option, my dude.

Still in 1.14.2 Pre-Release 1 and 1.14.2 Pre-Release 2

This is still in release 1.14.3. Testing various projectiles shows that it affects Snowballs, Eggs, Bottles 'o Enchanting, and Ender Pearls. It does not affect Eyes of Ender or Splash Potions. I've attached a video showing this (using the CustomModelData tag) in 1.14.3 with various items.

KirbAvion

boq

Community Consensus

Items

custom_model_data, item-stack, nbt, projectiles, snowball

Minecraft 19w08b, Minecraft 19w09a, Minecraft 19w11a, Minecraft 19w11b, Minecraft 19w12a, ..., 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

19w35a

Retrieved