The problem
When a player (lets say player A) throws a lingering potion and kills another player (player B), it will say that player B was killed by the item player A was holding at the time of player B's death (if the item has a custom name)
How to recreate (singleplayer)
open a new singleplayer creative world
give yourself any item, and rename it in an anvil
throw the lingering potions of harming
hold the renamed item and kill yourself using the lingering area effect clouds
the death message will say "Player was killed by Player using <renamed item>
How to recreate (multiplayer)
open new creative world and open it to lan
join the world on another computer (player B)
have player A get lingering potions of harming
have player A get any item and rename it using an anvil
have player B enter survival mode
have player A throw the lingering potions at player B, then quickly switch to the renamed item
Player B's death message will say "Player B was killed by Player A using <renamed item>
What is supposed to happen
Death message should say "Player A was killed by Player B using magic"
Linked issues
Attachments
Comments 4
Looks like this duplicates MC-89347
Please check if MC-89347 does describe your issue. This ticket will automatically reopen when you reply.
MC-89347 appears to be the same issue
I can confirm this in 1.20.4 and attached a video demonstrating the bug.