Getting killed by a guardian's beam results in the death message "<name> was slain by Guardian".
Steps to Reproduce:
Spawn a guardian
Wait untill the guardian kills you
See the death message
Comments


@unknown, I added more information.
What is wrong with that death message? This sounds more like a feature request than a bug.

@unknown because the guardian's laser beam is not a melee attack, thus it is a bug.
I can confirm however, this seems like a feature request and is probably intended although that is not my decision to make. Also affects 1.17.1.
Can confirm in 1.18.1.
Thank you for your report!
However, this issue is Incomplete.
Your report does not contain enough information. As such, we're unable to understand or reproduce the problem.
You are welcome to create a new ticket about your issue with more detailed information. In case of a game crash, be sure to attach the crash report from
[minecraft/crash-reports/crash-<DATE>-client.txt|https://minecrafthopper.net/help/finding-minecraft-data-folder/]
.However, please review the Bug Tracker Guidelines before creating new reports. Be sure to search for an existing issue as it is likely to have already been reported.
Quick Links:
📓 Bug Tracker Guidelines – 💬 Community Support – 📧 Mojang Support
📓 Project Summary – ✍️ Feedback and Suggestions – 📖 Game Wiki