If you give a nametag with a name to a fish that is currently swimming around, and you kill it afterwards, it won't have that name when it drops as an item. It will just have the normal item name, for example ''Raw Cod''.
This is not a feature request, because as of recent 1.20.3 snapshots, non-living entities such as boats display the name in both item and entity form. This is the same thing in my view.
As of more recent 1.20.3 snapshots, arrows now also keep their custom name after being shot and picked up (aka going from item form to entity form, then to item form again)
Related issues
Comments


I disagree Dhranios. As of recent 1.20.3 snapshots, non-living entities such as boats display the name in both item and entity form. This is the same thing in my view.
Surely a fish is a living entity though?

It’s still an entity. I dob’t see why there should be different standards between living and non-living ones in terms of that. If you kill a fish and pick it up, one would expect that the dead fish you picked up is the "same one as the one that was swimming. So they should certainly be connected by the name you gave it. Same as if you break a named boat (which as of recent snapshots has its name hovering over it when placed), it keeps its name as an item counterpart.
The behavior you're expecting is already present for fish bucket items. Those are capable of capturing, and replacing the entity inside the world, where as fish items are simply a regular item that represents an entity.

Unlike minecarts, boats and armor stands, you cannot place a fish back into the world. There's a difference between an entity dropping itself, and an entity dropping loot. This is still requesting new behavior for the fish, as it's not inconsistent with anything similar (again, armor stands, boats and items are literally only similar in that they're an entity type, that's where similarities end), and it would actually make it inconsistent with every other piece of mob loot.

It is loot in a sense, but it is also literally the fish you just killed in item form. Its not the same as a skeleton dropping a bow.
This is a feature request, not a bug.