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.

Linked issues

Attachments

Comments 51

same for boats and minecarts

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

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.

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

Confirmed for 08a

41 more comments

Can confirm in 1.19.2.

Can confirm in 23w04a

Can confirm in 23w05a

Can confirm in 23w06a

Affects 1.20.1.

Wyyrme

[Mod] redstonehelper

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