Uploaded image for project: 'Minecraft: Java Edition'
  1. Minecraft: Java Edition
  2. MC-260275

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

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • None
    • 23w07a, 1.19.4 Pre-release 1, 1.19.4
    • None
    • Confirmed
    • Commands
    • Normal
    • Platform

      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
      ...

            Unassigned Unassigned
            Shuddery Shuddery
            Votes:
            4 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              CHK: