Minecraft wiki entry for Name_Tag, associated text: If a renamed mob kills a player, the custom name is used in the death message in place of the mob type name. For instance, if a vindicator named "Johnny" kills a player, the death message will be "Player was slain by Johnny".