FriendChat
FriendChat 为 Minecraft 添加了一个轻量级的标签页式聊天界面,让你能够筛选对话并快速向特定玩家发送消息 —— 无需安装服务端。
✨ 功能特性
- 三个聊天标签页:普通(Normal)、好友(Friends)和私聊(MP)
- 好友列表:筛选聊天内容,仅显示包含你自定义好友列表中名字的消息
- MP 标签页:聚焦于单个玩家,无需重新输入命令即可立即回复他们
- 可配置命令:重命名模组中的任何命令,以适应你的服务器或游玩风格
- 持久化配置:你的好友列表和设置会在会话之间保存
- 仅客户端:适用于任何服务器,无需在服务端安装任何东西
?️ 工作原理
在聊天屏幕的左下角会出现三个标签页。点击标签页可在以下视图间切换:
- Normal(普通) — 常规的、未过滤的聊天
- Friends(好友) — 仅显示包含你好友列表中名字的对话
- MP(私聊) — 仅显示与你当前聚焦的玩家相关的对话
? 命令
所有命令均为客户端命令。
/chatfriend
管理你的好友列表。
/chatfriend add <player> — 将玩家添加到你的好友列表
/chatfriend remove <player> — 从你的好友列表中移除玩家
/chatmp <player>
将 MP 标签页聚焦于指定玩家并切换到该标签页。当 MP 标签页处于活动状态时,你在聊天中输入的任何不以 / 开头的消息都会自动作为私聊发送给该玩家(使用你服务器的消息命令,见下文)。
/friendchatconfig <type> <newValue>
重命名模组的命令。
/friendchatconfig friend <newValue> — 更改 /chatfriend 的名称
/friendchatconfig mp <newValue> — 更改 /chatmp 的名称
⚠️ 重命名命令后需要重启游戏才能生效。
⚙️ 配置
FriendChat 会自动在你的 config 文件夹中创建两个文件:
friendchat_config.json — 命令名称和服务器消息命令
friendchat_friends.json — 你保存的好友列表
默认值:
{
"friendCmd": "chatfriend",
"mpCmd": "chatmp",
"configCmd": "friendchatconfig",
"serverMsgCmd": "msg"
}
如果你的服务器使用的私聊命令不是 /msg(例如 /tell、/w、/pm),请在配置文件中更新 serverMsgCmd 以匹配 —— 这是 FriendChat 在 MP 标签页中底层使用的命令。
? 要求
- 目前仅支持 Minecraft 1.21.11
- Fabric Loader 0.18.1+
- Fabric API
- Java 21+
? 许可证
MIT
FriendChat
FriendChat adds a lightweight tabbed chat interface to Minecraft, letting you filter conversations and quickly message specific players — no server-side installation required.
✨ Features
- Three chat tabs: Normal, Friends, and MP (private message focus)
- Friends list: filter chat to only show messages containing names from your custom friend list
- MP tab: focus on a single player and instantly reply to them without retyping commands
- Configurable commands: rename any of the mod's commands to fit your server or playstyle
- Persistent config: your friend list and settings are saved between sessions
- Client-side only: works on any server, nothing to install server-side
🖱️ How it works
Three tabs appear at the bottom-left of your chat screen. Click a tab to switch between:
- Normal — the regular, unfiltered chat
- Friends — only messages containing a name from your friends list are shown
- MP — only messages involving your currently focused player are shown
📜 Commands
All commands are client-side.
/chatfriend
Manage your friends list.
/chatfriend add <player> — add a player to your friends list
/chatfriend remove <player> — remove a player from your friends list
/chatmp <player>
Focuses the MP tab on the given player and switches to it. While the MP tab is active, any message you type in chat that doesn't start with / is automatically sent as a private message to that player using your server's message command (see below).
/friendchatconfig <type> <newValue>
Rename the mod's commands.
/friendchatconfig friend <newValue> — change the name of /chatfriend
/friendchatconfig mp <newValue> — change the name of /chatmp
⚠️ A game restart is required for renamed commands to take effect.
⚙️ Configuration
FriendChat automatically creates two files in your config folder:
friendchat_config.json — command names and server message command
friendchat_friends.json — your saved friends list
Default values:
{
"friendCmd": "chatfriend",
"mpCmd": "chatmp",
"configCmd": "friendchatconfig",
"serverMsgCmd": "msg"
}
If your server uses a different private message command than /msg (e.g. /tell, /w, /pm), update serverMsgCmd in the config file to match — this is what FriendChat uses under the hood when you type in the MP tab.
📋 Requirements
- Only Minecraft 1.21.11 for now
- Fabric Loader 0.18.1+
- Fabric API
- Java 21+
📄 License
MIT
评论 0
登录后参与评分
还没有评论,来抢沙发吧