聊天范围
一款适用于 Minecraft 1.21.11 的服务端 Fabric 模组,可将聊天可见性限制在可配置的方块半径内。玩家仅能看到来自附近其他玩家的聊天消息——包括聊天、死亡信息、通知和进度公告。
要求
- Minecraft 1.21.11
- Fabric Loader 0.18.0+
- Fabric API 0.141.3+1.21.11
安装
- 为 Minecraft 1.21.11 安装 Fabric Loader。
- 下载适用于 1.21.11 的 Fabric API 并将其放入
mods/ 文件夹中。
- 将
chatrange-1.0.0.jar 放入服务器的 mods/ 文件夹中。
- 启动服务器。
该模组仅限服务端——客户端无需安装任何内容。
命令
所有命令都需要操作员权限(gamemaster 级别)。
| 命令 |
描述 |
/chatrange set <blocks> |
启用带有指定半径的范围限制聊天 |
/chatrange on |
使用上次配置的半径重新启用 |
/chatrange off |
禁用——所有消息全局广播 |
/chatrange status |
显示模组是否启用以及当前半径 |
半径单位为方块。示例:/chatrange set 100 将聊天限制在 100 个方块的半径内。
过滤内容
启用后,以下消息将仅限于距离来源配置半径内的玩家:
- 玩家聊天——在聊天中输入的消息
- 命令消息——
/say、/me 等
- 死亡信息——只有附近的玩家能看到他人死亡
- 进度公告——只有附近的玩家能看到进度完成
来自服务器控制台的消息始终全局广播。
配置
设置会自动保存到你服务器上的 config/chatrange.json 文件中:
{
"enabled": true,
"range": 64.0
}
你可以在服务器停止时直接编辑此文件,或在运行时使用游戏内命令进行修改。
默认半径为64 个方块。模组首次安装时处于禁用状态——请使用 /chatrange set <blocks> 或 /chatrange on 来激活它。
Chat Range
A server-side Fabric mod for Minecraft 1.21.11 that limits chat visibility to a configurable block radius. Players only see messages from others who are nearby — including chat, death messages, notifications, and advancement announcements.
Requirements
- Minecraft 1.21.11
- Fabric Loader 0.18.0+
- Fabric API 0.141.3+1.21.11
Installation
- Install Fabric Loader for Minecraft 1.21.11.
- Download Fabric API for 1.21.11 and place it in your
mods/ folder.
- Place
chatrange-1.0.0.jar in your server's mods/ folder.
- Start the server.
The mod is server-side only — clients do not need to install anything.
Commands
All commands require operator permissions (gamemaster level).
| Command |
Description |
/chatrange set <blocks> |
Enable range-limited chat with the given radius |
/chatrange on |
Re-enable with the last configured radius |
/chatrange off |
Disable — all messages are broadcast globally |
/chatrange status |
Show whether the mod is enabled and the current radius |
The radius is in blocks. Example: /chatrange set 100 limits chat to a 100-block radius.
What is filtered
When enabled, the following messages are limited to players within the configured radius of the source:
- Player chat — messages typed in chat
- Command messages —
/say, /me, etc.
- Death messages — only nearby players see when someone dies
- Advancement announcements — only nearby players see advancement completions
Messages from the server console are always broadcast globally.
Configuration
Settings are saved automatically to config/chatrange.json on your server:
{
"enabled": true,
"range": 64.0
}
You can edit this file directly while the server is stopped, or use the in-game commands while it's running.
The default radius is 64 blocks. The mod starts disabled on first install — use /chatrange set <blocks> or /chatrange on to activate it.
评论 0
登录后参与评分
还没有评论,来抢沙发吧