Minecraft wiki entry for Health, associated text: Upon the death of a player, a death message describing the cause of death is shown to everyone in that world. In Java Edition, the death of a player's pet also creates a death message, but one that is shown only to its owner.