ChatScope
在网页浏览器中实时查看你的 Minecraft 聊天信息 — 按你定义的分区进行整理,并过滤掉无关噪音。
ChatScope 会在游戏内运行一个小型 Web 服务器。在任何浏览器(或手机、平板或第二显示器)中打开 ,即可看到一个实时的聊天镜像,你可以随意对其进行自定义布局。它非常适合在你隐藏 HUD 录制视频时监控聊天、观看繁忙的服务器,或者仅仅是将聊天信息显示在第二个屏幕上。
功能特性
- 实时聊天:通过 WebSocket 即时流式传输——无需刷新。保留了 Minecraft 的颜色、粗体/斜体样式以及游戏内的悬停提示框(物品属性、实体信息)。
- 可配置的分区 —— 将聊天拆分为任意数量的命名分区,每个分区由你自己的正则表达式匹配。分区可折叠和调整大小,未匹配的内容会落入“默认捕获”区域。
- 过滤器 —— 使用自定义模式完全隐藏垃圾消息。
- 实时设置面板 —— 直接在浏览器中添加、重命名、重新排序和切换分区与过滤器。更改立即生效并本地保存。
- 玩家列表:类似游戏内的标签页列表:显示头像、延迟和游戏模式,包含“在线”和“离线”选项卡(“离线”显示聊天日志中出现过的所有玩家)。
- 玩家资料 —— 点击任意玩家即可查看其皮肤的旋转 3D 视图以及完整的已记录消息历史,支持搜索和分页浏览。
- 按服务器分组的聊天记录:本地存储在 SQLite 数据库中,每个服务器拥有独立的表,确保历史记录互不混淆。
- 可选密码保护与网络访问 —— 仪表盘监听所有网络接口,便于端口转发,并且你可以在模组设置中要求输入密码(留空表示开放访问)。
- 附加功能:深色/浅色主题、无障碍模式、提及音效、实时观看者计数、连接运行时间、聊天搜索以及文本导出。
无外部前端框架依赖。仅使用 HTML、CSS 和 JavaScript。
个性化定制
点击仪表盘中的 ⚙ 设置 按钮。
- 分区:每个分区都有名称、启用/禁用开关以及一个或多个正则表达式模式。消息会被分配到第一个启用的且模式匹配的分区,因此顺序很重要(使用 ↑ / ↓ 按钮调整)。例如,
^\[Staff\] 可用于建立员工专区,而 was slain|drowned|fell 则用于归类死亡消息。
- 过滤器:每个过滤器接受一个正则表达式。任何匹配到已启用过滤器的消息都将被隐藏。例如,
^SHOP » 可用于丢弃商店垃圾消息。
模式为标准 JavaScript 正则表达式,针对每条消息的纯文本进行匹配。无效的模式会被标记并安全忽略。你的配置是按浏览器保存的,因此每位观看者都可以按照自己的喜好进行布局。
网络与密码
仪表盘监听所有网络接口,因此你可以从其他设备通过 http://<your-ip>:25534 访问,或直接进行端口转发。若要对外暴露访问,请通过模组设置(经由 Mod Menu,或 config/chatscope.json 文件)设置密码。请仅与你信任的人共享访问权限。
需求
- Minecraft 1.21.11 (Fabric)
- Fabric API
0.140.0+1.21.11 或更高版本
- Java 21+
- Mod Menu 为可选组件,仅用于提供游戏内设置按钮
Cloth Config 已捆绑内置,因此无需单独安装。
源码
开源项目 (MIT 协议),托管于 GitHub:
ChatScope
Watch your Minecraft chat live in a web browser — organised into sections you define, with the noise filtered out.
ChatScope runs a small web server inside your game. Open in any browser (or on your phone, tablet, or a second monitor) and you get a real-time mirror of your chat that you can shape however you like. It's great for keeping an eye on chat while you're recording with the HUD hidden, watching a busy server, or just having chat on a second screen.
Features
- Live chat streamed instantly over a WebSocket — no refreshing. Minecraft colours, bold/italic, and in-game hover tooltips (item stats, entity info) are preserved.
- Sections you configure — split chat into as many named sections as you want, each matched by your own regular expressions. Sections are collapsible and resizable, and anything unmatched lands in a catch-all.
- Filters — hide spammy messages entirely with your own patterns.
- Live settings panel — add, rename, reorder, and toggle sections and filters right in the browser. Changes apply instantly and are saved locally.
- Player list like the in-game tab list: heads, ping, and game mode, with Online and Offline tabs (Offline shows everyone seen in the chat log).
- Player profiles — click any player for a rotating 3D view of their skin plus their full logged message history, with search and pagination.
- Per-server chat log stored locally in SQLite, with a separate table per server so history never mixes.
- Optional password and network access — the dashboard listens on all interfaces so it's easy to port-forward, and you can require a password from the mod settings (empty means open).
- Extras: dark/light theme, accessibility mode, mention sound, live viewer count, connection uptime, chat search, and text export.
No external frontend frameworks. Just HTML, CSS, and JavaScript.
Make it yours
Click the ⚙ settings button in the dashboard.
- Sections each have a name, an on/off toggle, and one or more regex patterns. A message goes to the first enabled section whose pattern matches, so order matters (use the ↑ / ↓ buttons). For example,
^\[Staff\] for a staff section, or was slain|drowned|fell to group deaths.
- Filters each take one regex. Any message matching an enabled filter is hidden. For example,
^SHOP » to drop shop spam.
Patterns are standard JavaScript regular expressions matched against the plain text of each message. Invalid patterns are flagged and safely ignored. Your configuration is saved per browser, so everyone viewing can lay it out their own way.
Network & password
The dashboard listens on all network interfaces, so you can reach it from other devices at http://<your-ip>:25534 or port-forward it directly. Open the mod settings (via Mod Menu, or config/chatscope.json) to set a password if you expose it. Only share access with people you trust.
Requirements
- Minecraft 1.21.11 (Fabric)
- Fabric API
0.140.0+1.21.11 or newer
- Java 21+
- Mod Menu is optional, only for the in-game settings button
Cloth Config is bundled, so you don't need to install it separately.
Source
Open source (MIT) on GitHub:
评论 0
登录后参与评分
还没有评论,来抢沙发吧