The bug
Arrows lose their name and NBT data when shot and picked up.
How 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
❌ 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
is duplicated by 9
relates to 4
Attachments
Comments 51
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.
same for boats and minecarts