Mojira Archive
MC-260275

Attacker not shown in death message for certain damage types when entering an attacker in /damage command

Steps to Reproduce:
1) Run /damage @s 20 minecraft:generic by @s
Note that the death message appears as "Player died"
This should be "Player died because of Player"

2) Shoot yourself with a bow and arrow then runĀ  /damage @s 20 minecraft:generic
Note that the death message appears as "Player died because of Player"
This is the correct and expected death message

Note that adding "by @s" in the 2nd step gives "Player died" which is wrong.

You can replace "minecraft:generic" with the following for the same results:
minecraft:cactus
minecraft:cramming
minecraft:dragon_breath
minecraft:drown
minecraft:dry_out
minecraft:explosion
minecraft:fall
minecraft:falling_anvil
minecraft:falling_block
minecraft:falling_stalactite
minecraft:fireworks
...

Unresolved

Shuddery

2023-02-16, 11:56 PM

2024-08-07, 12:37 PM

4

3

Confirmed

Normal

Platform

Commands

23w07a, 1.19.4 Pre-release 1, 1.19.4, 1.21

-