mojira.dev
MC-1981

All arrow types lose their name/NBT data when shot and picked up

The bug

Arrows lose their name and NBT data when shot and picked up.

How to reproduce

  1. Obtain a bow and give yourself an arrow with a custom name:

    /give @s minecraft:arrow{display:{Name:'{"text":"MC-1981"}'}}
  2. Shoot the arrow on the ground using the bow

  3. Pick up the arrow
    ❌ The arrow no longer has a custom name

Expected behavior

Arrows would not lose their NBT data when shot and picked up.

Note

Other issues previously tracked in this ticket are now reported in MC-91005, MC-91006 and MC-91007. See this discussion for details.

Related issues

Attachments

Comments

migrated
[media][media][media][media][media]
migrated

same for boats and minecarts

migrated

I think this works as intended. As annoying as it is, entities are not currently capable of retaining information from their item state.

migrated

Well I imagine it could work just like spawn eggs do, actually it would be pretty cool if boats displayed their names like mobs do.

migrated

Minecarts have been fixed, but arrows from a dispenser, etc. haven't.

migrated

Confirmed for 08a

migrated

Confirmed 14w10a,b,c
Arrows shot from bows, snowballs thrown at friends...

qmagnet

Command blocks are affected as well. They retain their NBT data but their name gets replace by [@]

migrated

At least cakes have been fixed in 1.8.

migrated

This happens for banners as well. It happens in 1.8.1. Maybe it's intended. But, please, make sure the names (given by using the anvil) are saved even after you have placed the banner in the world.

migrated

also happens to saddles on pigs(annoying when you get the achievement via a named saddle)

migrated

the tipped arrows work for this in 15w31a, yet normal arrows don't

marcono1234

Confirmed for

  • 15w44b as the entity TippedArrow does not longer exist (arrows have now only the tag Potion) they are also affected

migrated

So basically all arrows are now affected?

migrated

Yes

FaRo1

Confirmed for 1.10.

FaRo1

Confirmed for 1.10.1.

migrated

Confirmed for 1.10.2

JUE13

Confirmed for 1.12-pre5

migrated

I named some arrows Bullet and picked them up. They were named "Arrow." That was in a snap shot for 1.8.

FaRo1

Currently only version 1.12 is supported. 1.8 snapshots are almost 3 years old, you should really update! What do you even use to start these? They are not in the regular launcher.

bemoty

Can confirm for MC 1.12.1.

migrated

Affects 1.13.1

migrated

Affects 1.14.1

migrated

Affects 20W12A

pulpetti

Affects 1.16.1

pulpetti

Affects 20w27a

FaRo1

@unknown It's usually not very useful to confirm something for every past snapshot, only for the current one and the latest release. If you want, you can check which version introduced a bug, but I don't know if Mojang looks at that.
You can also look at this list and the reply to it if you want to do more: https://www.reddit.com/r/Mojira/comments/gr54ik/mojira_ama/fww0akd/

pulpetti

Affects 20w29a

Avoma

Can confirm in 20w48a.

Avoma

Can confirm in 20w49a.

Avoma

Can confirm in 21w03a.

Avoma

Can confirm in 21w05a.

Avoma

Can confirm in 21w05b.

ArmouredMonkey

Can confirm in 21w06a

Avoma

Can confirm in 21w07a. Video attached.

Avoma

Can confirm in 21w11a.

Avoma

Can confirm in 1.16.5 and 21w14a.

Avoma

Can confirm in 21w15a.

Avoma

Can confirm in 21w17a.

Avoma

Can confirm in 1.17.

ampolive

Can confirm in 1.17.1.

Avoma

Can confirm this in 21w44a. Here are some extra details regarding this problem.

The Bug:

Arrows lose their NBT data when shot and picked up.

Steps to Reproduce:

  • Obtain a bow and give yourself an arrow with a custom name.

/give @s minecraft:arrow{display:{Name:'{"text":"MC-1981"}'}}
  • Shoot the arrow on the ground using the bow.

  • Pick up the arrow and take note as to whether or not it retains its custom name.

Observed Behavior:

Arrows lose their NBT data when shot and picked up.

Expected Behavior:

Arrows would not lose their NBT data when shot and picked up.

Avoma

Can confirm in 1.18.1.

Avoma

Can confirm in 1.18.2.

Avoma

Can confirm in 1.19.

Avoma

Can confirm in 1.19.1.

Avoma

Can confirm in 1.19.2.

Brain81505

Can confirm in 23w04a

Brain81505

Can confirm in 23w05a

Brain81505

Can confirm in 23w06a

Brevort

Affects 1.20.1.

migrated

Tommy Wallberg

Confirmed

Platform

Normal

Entities, Items

anvil, arrow, display-Name, item-renaming, shooting

Minecraft 1.4.2, Minecraft 1.4.6, Minecraft 1.4.7, Snapshot 13w05b, Minecraft 1.5, ..., 1.20, 1.20.1, 23w31a, 1.20.2, 23w41a

23w43a

Retrieved