适用于 Minecraft(Fabric)的聊天界面替换模组。每条消息都有独立的显示框,附带图标或玩家头像;聊天气泡会出现在发言玩家的头顶上方,所有设置均集成在一个设置界面中。
源代码 · 发布版本 · 报告问题

功能特性
- 消息框。玩家聊天显示作者头像;系统消息、错误提示、进度、成就、加入/离开、睡眠、截图和命令方块等每种类型都有各自的图标和背景色。
- 私聊显示双方头像及箭头:指示谁向谁发送了消息。
- 聊天气泡位于在公共频道发言的玩家头顶,提供四种样式,支持调整大小、持续时间、范围、不透明度和宽度。
- 反垃圾信息将重复的消息合并为一条并附带计数标记(如
x3)。
- 动画效果用于消息进入和消失时的过渡:淡入淡出、从任意方向滑入、弹跳或无动画。
- 六种屏幕位置:顶部或底部、左侧、居中或右侧。
- 兼容任何服务器和语言。通过识别游戏报告的聊天类型(聊天类型、翻译键)来区分消息类型,同时内置 EssentialsX/CMI、Hypixel 风格以及常见的
[Rank] Name » text 格式的正则模式。
- 12 种语言支持:English, Русский, Deutsch, Español, Português (Brasil and Portugal), Italiano, Polski, Türkçe, 한국어, 日本語, العربية.
聊天气泡

深色、白色像素和工具提示样式(此外还有纯文本标签样式)。资源包可以重新设计其中任何一种样式,详见下方。
设置
通过 选项 → 聊天设置(Yap Chat 替换了原版界面,原版的聊天选项位于 Minecraft 标签页下)或 Mod Menu 打开。每项更改都会立即生效;右侧列会在鼠标悬停时解释该选项并提供实时预览。
外观: 位置、背景不透明度、出现和消失动画,带有循环预览。

消息: 每种消息类型的图标和背景颜色。

气泡: 样式、大小、持续时间、范围、不透明度和宽度,并在你的角色身上进行预览。

高级: 菜单强调色(并非所有人都喜欢红色)、自定义规则和服务器模式、配置文件文件夹。

此外还包括:常规(样式、反垃圾信息、显示时间、可见消息数、历史记录大小)和 Minecraft(所有原版聊天选项)。
服务器消息格式
如果你的服务器使用自己的私聊或聊天格式,请在 config/yap-chat.json 中添加一个模式:
"serverPatterns": [
{ "id": "my-server-pm", "regex": "^✉ (?<from>\\w+) » (?<to>\\w+): (?<body>.*)$", "type": "WHISPER" }
]
命名分组:from / to(私聊;me、я 或你的昵称代表你自己)、name(聊天作者,必须在线)、body(消息内容)。
使用资源包重设气泡样式
每种气泡样式均由资源绘制,因此资源包可以替换其中任何一种。<style> 可以是 dark、white、tooltip 或 nametag。
| 文件 |
说明 |
assets/yap-chat/textures/gui/sprites/bubble/<style>.png |
气泡主体。作为九宫格拉伸;在 <style>.png.mcmeta 中设置边框(格式与原版 GUI 精灵相同)。 |
assets/yap-chat/textures/gui/sprites/bubble/<style>_tail.png |
主体下方的尾巴。 |
assets/yap-chat/bubbles/<style>.json |
文字和布局设置,见下文。 |
{
"text_color": "#202020",
"text_shadow": false,
"padding_x": 5,
"padding_y": 4,
"min_opacity": 0.5,
"tail": true,
"tail_width": 6,
"tail_height": 4,
"tail_anchor": 4,
"tail_overlap": 1
}
min_opacity:气泡不透明度滑块映射范围为 0–100%,对应 min_opacity 至 100%。
tail_anchor:位于气泡中心(尖端)下方的尾巴的 x 像素坐标。
tail_overlap:有多少行尾巴绘制在主体底部之上(以切断主体的轮廓线)。
更改后按 F3+T 即可应用。
版本
需要 Fabric Loader 和 Fabric API。Mod Menu 为可选组件。仅限客户端。
Yap Chat 曾名为 KKS Chat;旧的 config/kks-chat.json 会被自动读取。
构建
./gradlew build
jar 文件位于 build/libs 中。执行 ./gradlew runClientGameTest 可启动游戏并检查真实消息的分类情况。
支持
疑问与建议:Discord ddev14,或提交 Issue。
许可证
GNU 通用公共许可证 v3.0
| assets/yap-chat/textures/gui/sprites/bubble/<style>.png | 气泡主体。作为九宫格拉伸;在 <style>.png.mcmeta 中设置边框(格式与原版 GUI 精灵相同)。 |
| assets/yap-chat/textures/gui/sprites/bubble/<style>_tail.png | 主体下方的尾部。 |
| assets/yap-chat/bubbles/<style>.json | 文本和布局设置,见下文。 |
{
"text_color": "#202020",
"text_shadow": false,
"padding_x": 5,
"padding_y": 4,
"min_opacity": 0.5,
"tail": true,
"tail_width": 6,
"tail_height": 4,
"tail_anchor": 4,
"tail_overlap": 1
}
min_opacity: 气泡不透明度滑块将 0–100% 映射到 min_opacity–100%。
tail_anchor: 位于气泡中心(尖端)下方尾部的 x 像素坐标。
tail_overlap: 有多少行尾部绘制在主体底部之上(以切断其轮廓)。
更改在按下 F3+T 后生效。
版本
需要 Fabric Loader 和 Fabric API。Mod Menu 为可选。仅限客户端。
Yap Chat 曾名为 KKS Chat;会自动读取旧的 config/kks-chat.json 配置。
构建
./gradlew build
jar 文件位于 build/libs。./gradlew runClientGameTest 启动游戏并检查真实消息的分类情况。
支持
问题与建议:Discord ddev14,或提交 Issue。
许可证
GNU 通用公共许可证 v3.0
A chat replacement for Minecraft (Fabric). Every message gets its own box with an icon or the player's head, chat bubbles pop up above players' heads, and everything is set up in one settings screen.
Source code · Releases · Report a bug

Features
- Message boxes. Player chat shows the author's head; system messages, errors, advancements, challenges, join/leave, sleep, screenshots and command blocks each get their own icon and background color.
- Whispers show both heads with an arrow: who wrote to whom.
- Chat bubbles above the player who wrote in public chat, in four styles, with size, time, range, opacity and width settings.
- Anti-spam merges repeated messages into one with a counter (
x3).
- Animations for messages coming in and leaving: fade, slide in any direction, bounce or none.
- Six positions on screen: top or bottom, left, center or right.
- Works on any server and in any language. Message types are recognised from what the game reports (chat type, translation keys), plus built-in patterns for EssentialsX/CMI, Hypixel-style and common
[Rank] Name » text formats.
- 12 languages: English, Русский, Deutsch, Español, Português (Brasil and Portugal), Italiano, Polski, Türkçe, 한국어, 日本語, العربية.
Chat bubbles

Dark, white pixel and tooltip styles (there is also a plain name-tag style). Resource packs can restyle every one of them, see below.
Settings
Open them from Options → Chat Settings (Yap Chat replaces the vanilla screen, the vanilla chat options are in the Minecraft tab) or from Mod Menu. Every change applies right away; the right column explains the option under the mouse and shows a live preview.
Appearance: position, background opacity, appear and hide animations with a looping preview.

Messages: icon and background color for every message type.

Bubbles: style, size, time, range, opacity and width, with a preview on your own character.

Advanced: accent color of the menu (not everyone likes red), custom rules and server patterns, config folder.

Also: General (styling, anti-spam, show time, visible messages, history size) and Minecraft (all vanilla chat options).
Server message formats
If your server uses its own private message or chat format, add a pattern to config/yap-chat.json:
"serverPatterns": [
{ "id": "my-server-pm", "regex": "^✉ (?<from>\\w+) » (?<to>\\w+): (?<body>.*)$", "type": "WHISPER" }
]
Named groups: from / to (private messages; me, я or your nick mean you), name (chat author, must be online), body (the message).
Restyling bubbles with a resource pack
Every bubble style is drawn from resources, so a resource pack can replace any of them. <style> is dark, white, tooltip or nametag.
| File |
What it is |
assets/yap-chat/textures/gui/sprites/bubble/<style>.png |
Bubble body. Stretched as a nine-slice; set the border in <style>.png.mcmeta (same format as vanilla GUI sprites). |
assets/yap-chat/textures/gui/sprites/bubble/<style>_tail.png |
Tail under the body. |
assets/yap-chat/bubbles/<style>.json |
Text and layout settings, see below. |
{
"text_color": "#202020",
"text_shadow": false,
"padding_x": 5,
"padding_y": 4,
"min_opacity": 0.5,
"tail": true,
"tail_width": 6,
"tail_height": 4,
"tail_anchor": 4,
"tail_overlap": 1
}
min_opacity: the bubble opacity slider maps 0–100% onto min_opacity–100%.
tail_anchor: x pixel of the tail that sits under the bubble's center (the tip).
tail_overlap: how many tail rows are drawn over the bottom of the body (to cut through its outline).
Changes apply on F3+T.
Versions
Requires Fabric Loader and Fabric API. Mod Menu is optional. Client-side only.
Yap Chat used to be called KKS Chat; an old config/kks-chat.json is picked up automatically.
Building
./gradlew build
The jar is in build/libs. ./gradlew runClientGameTest starts the game and checks how real messages are classified.
Support
Questions and ideas: Discord ddev14, or open an issue.
License
GNU General Public License v3.0
| assets/yap-chat/textures/gui/sprites/bubble/<style>.png | Bubble body. Stretched as a nine-slice; set the border in <style>.png.mcmeta (same format as vanilla GUI sprites). |
| assets/yap-chat/textures/gui/sprites/bubble/<style>_tail.png | Tail under the body. |
| assets/yap-chat/bubbles/<style>.json | Text and layout settings, see below. |
{
"text_color": "#202020",
"text_shadow": false,
"padding_x": 5,
"padding_y": 4,
"min_opacity": 0.5,
"tail": true,
"tail_width": 6,
"tail_height": 4,
"tail_anchor": 4,
"tail_overlap": 1
}
min_opacity: the bubble opacity slider maps 0–100% onto min_opacity–100%.
tail_anchor: x pixel of the tail that sits under the bubble's center (the tip).
tail_overlap: how many tail rows are drawn over the bottom of the body (to cut through its outline).
Changes apply on F3+T.
Versions
Requires Fabric Loader and Fabric API. Mod Menu is optional. Client-side only.
Yap Chat used to be called KKS Chat; an old config/kks-chat.json is picked up automatically.
Building
./gradlew build
The jar is in build/libs. ./gradlew runClientGameTest starts the game and checks how real messages are classified.
Support
Questions and ideas: Discord ddev14, or open an issue.
License
GNU General Public License v3.0
评论 0
登录后参与评分
还没有评论,来抢沙发吧