mojira.dev
MC-186916

Damage sources converted to entity damage sources have caused death messages to become unused

Note: Since 23w06a, these death messages are no longer technically unused, since you can obtain them by using the new /damage command. I am not sure whether this ticket should still be considered valid though.

A lot of entity damage sources have not always been entity damage sources, since they were once environmental damage sources. This caused their ".player" death message variants to become unused, but their translation strings still exist.

Affected death messages:

  • death.attack.sting.player (well, this one was always unused, so it doesn't have the same history as the rest)

  • death.attack.fireworks.player

  • death.attack.sonic_boom.player

  • death.attack.anvil.player

  • death.attack.fallingBlock.player

  • death.attack.fallingStalactite.player

How to reproduce:

  1. Execute the following command, replacing <message> with one of the above strings:

    /tellraw @s {"translate":"<message>"}

    → ❌ The message that appears is translated.

Expected result:

Previously existing death messages that were removed due to their damage sources being changed from environmental to entity damage would display as raw translation strings.

Observed result:

The death messages listed above are still translated.

Linked issues

Comments 3

Works as intended

They aren’t a bug, it’s just unused

The bug is that they exist. They are just there to take up more bytes.

Can confirm in 1.17.1. Should probably be merged into MC-180272.

[Mod] ManosSef

(Unassigned)

Confirmed

Text

en_us.json

1.15.2, 20w22a, 1.16 Pre-release 3, 1.16 Pre-release 4, 1.16 Pre-release 6, ..., 1.19.3 Pre-release 1, 1.19.3, 23w03a, 1.21.9, 1.21.11

Retrieved