Blocketing
Blocketing 是一款适用于 Fabric 的模组,可实现 Discord 频道与 Minecraft 服务器之间的无缝通信,支持双向消息同步和命令执行。
✨ 功能特性
- ✅ 双向同步 Minecraft 和 Discord 消息 ?
- ✅ 玩家加入/离开通知及头像显示 ?️
- ✅ 服务器启动/停止公告 ?
- ✅ 可切换是否向 Discord 发送进度完成和死亡消息 ?
- ✅ 从 Discord 运行 Minecraft 命令(基于权限)?️
- ✅ 玩家聊天 Webhook 模式(包含头像和名称)?
- ✅ 通过游戏内命令进行配置 ?
- ✅ 新模组版本更新通知 ?
- ✅ 通过 Discord 斜杠命令查看分页玩家列表和服务器状态 ?
- ✅ 多服务器支持:使用相同的 Discord 机器人令牌运行多个 Minecraft 服务器实例(按服务器过滤频道)♾️
? 安装指南
? 1. 安装模组
- 下载 发布页面 中的最新
.jar文件。 - 将
.jar文件放入服务器的mods/文件夹中。 - 使用 Fabric 启动 Minecraft 服务器。
- 使用游戏内命令配置机器人(详见下文)。
? 2. 设置 Discord 机器人
- 在 Discord 开发者门户 创建一个新的 Discord 机器人应用。
- 将机器人添加到您的 Discord 服务器。
- 复制
bot token(机器人令牌) 以便后续配置。
?️ 权限要求
- Minecraft:
/blocketing命令需要 4 级权限 (OP)。 - Discord: 通过 Discord 使用
/console时,用户必须拥有配置的 OP 角色(如果已设置)。
⚙️ 配置命令
所有配置均通过游戏内的 /blocketing 命令完成(仅限 OP):
设置 Discord 集成
/blocketing setup token <token>
设置 Discord 机器人令牌。/blocketing setup guild <guild_id>
设置 Discord 服务器(Guild)ID。/blocketing setup channel <channel_id>
设置用于消息同步的 Discord 频道 ID。/blocketing setup op_role <role_id>
设置从 Discord 运行/console所需的 Discord 角色 ID。/blocketing setup webhook_url <url>
设置用于玩家聊天 Webhook 模式的 Discord Webhook URL。/blocketing setup
列出可用的设置命令。
功能开关
/blocketing toggle advancements
启用/禁用向 Discord 发送进度完成消息。/blocketing toggle deaths
启用/禁用向 Discord 发送死亡消息。/blocketing toggle player_chat_mode
启用/禁用玩家聊天 Webhook 模式(使用 Webhook 进行聊天,包含玩家头像和名称)。/blocketing toggle update-info
启用/禁用新模组版本的更新通知。/blocketing toggle discord_chat_log
启用/禁用将 Discord 聊天消息记录到服务器控制台。/blocketing toggle
列出可用的开关选项。
其他命令
/blocketing reload
重新加载配置并重启 Discord 机器人。
? Discord 斜杠命令
/status
显示服务器状态(TPS、MSPT、CPU、内存占用、运行时间、版本)。/players
显示在线玩家(分页显示,附带导航按钮)。/console <command>
在 Discord 中执行 Minecraft 命令(若设置了 OP 角色则需具备该角色权限)。
? 玩家聊天 Webhook 模式
启用后,Minecraft 中的聊天消息会通过 Webhook 发送到 Discord,并显示玩家的名称和头像。
要启用此功能,请设置一个 Webhook URL,然后使用 /blocketing toggle player_chat_mode 命令。
? 通知
- 加入/离开:玩家加入或离开服务器的事件会在 Discord 中发布,并附带玩家头像。
- 进度/死亡:可以切换显示进度达成和死亡消息。
- 服务器启动/停止:服务器启动和停止事件会在 Discord 中发布。
- 更新信息:当有新模组版本可用时,会通知 OP(管理员)和 Discord。
❓ 需要帮助?
欢迎提问或提交 问题。
Blocketing
Blocketing is a Fabric mod for seamless communication between a Discord channel and a Minecraft server, enabling bidirectional message synchronization and command execution.
✨ Features
- ✅ Syncs Minecraft and Discord messages in both directions ?
- ✅ Join/Leave notifications with player avatars ?️
- ✅ Server start/stop announcements ?
- ✅ Toggle sending advancement and death messages to Discord ?
- ✅ Run Minecraft commands from Discord (permission-based) ?️
- ✅ Player chat webhook mode (with avatar & name) ?
- ✅ In-game configuration via commands ?
- ✅ Update notifications for new mod versions ?
- ✅ Paginated player list and server status via Discord slash commands ?
- ✅ Multi-server support to run multiple Minecraft server instances using the same Discord bot token (per-server channel filtering) ♾️
? Installation
? 1. Install the Mod
- Download the latest .jar from the Releases Page.
- Place the
.jarfile in your server’smods/folder. - Start the Minecraft server with Fabric.
- Configure the bot using the in-game commands (see below).
? 2. Set up the Discord Bot
- Create a new Discord bot application in the Discord Developer Portal.
- Add the bot to your Discord server.
- Copy the
bot tokenfor later configuration.
?️ Permissions
- Minecraft:
/blocketingcommands require permission level 4 (OP). - Discord: For
/consolevia Discord, the user must have the configured OP role (if set).
⚙️ Configuration Commands
All configuration is done in-game using /blocketing commands (OP only):
Setup Discord Integration
/blocketing setup token <token>
Set the Discord bot token./blocketing setup guild <guild_id>
Set the Discord server (guild) ID./blocketing setup channel <channel_id>
Set the Discord channel ID for message sync./blocketing setup op_role <role_id>
Set the Discord role ID required to run/consolefrom Discord./blocketing setup webhook_url <url>
Set the Discord webhook URL for player chat webhook mode./blocketing setup
List available setup commands.
Feature Toggles
/blocketing toggle advancements
Enable/disable sending advancement messages to Discord./blocketing toggle deaths
Enable/disable sending death messages to Discord./blocketing toggle player_chat_mode
Enable/disable player chat webhook mode (uses webhook for chat, with player avatar and name)./blocketing toggle update-info
Enable/disable update notifications for new mod versions./blocketing toggle discord_chat_log
Enable/disable logging of Discord chat messages to the server console./blocketing toggle
List available toggles.
Other Commands
/blocketing reload
Reload the configuration and restart the Discord bot.
? Discord Slash Commands
/status
Show server status (TPS, MSPT, CPU, RAM, uptime, version)./players
Show online players (paginated, with navigation buttons)./console <command>
Run a Minecraft command from Discord (requires OP role if set).
? Player-Chat Webhook Mode
When enabled, Minecraft chat messages are sent to Discord using a webhook, displaying the player's name and avatar.
To enable, set a webhook URL and use /blocketing toggle player_chat_mode.
? Notifications
- Join/Leave: Player join/leave events are announced in Discord with player avatars.
- Advancements/Deaths: Advancement and death messages can be toggled.
- Server Start/Stop: Server start/stop events are announced in Discord.
- Update Info: OPs and Discord can be notified when a new mod version is available.
❓ Need Help?
Feel free to ask questions or open an issue.
下载 Blocketing
下载 Blocketing
下载 Blocketing
下载 Blocketing
下载 Blocketing
下载 Blocketing
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Blocketing
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Blocketing
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Blocketing
下载 Blocketing
? 多服务器支持
? 使用一个机器人令牌运行多个服务器实例
- 新增支持通过同一个 Discord 机器人令牌运行多个 Minecraft 服务器实例。每个实例仅响应其配置的
CHANNEL_ID(斜杠命令、按钮交互、聊天)中的事件,确保各服务器的交互相互隔离。
感谢使用 Blocketing!
如果您遇到问题或有疑问,欢迎在 GitHub 上提交 issue。
关于这个资源的讨论、问题反馈与使用心得
还没有讨论,来发第一帖吧
你是这个资源的作者?登录后可认领此资源。
相似资源
模组
显示你正在注视的方块的信息。(适用于 Minecraft 1.16+ 的 Hwyla/Waila 分支)
模组
查看物品与配方
模组
在游戏画面角落显示附近世界地形、玩家、生物和实体的地图。可创建路径点,帮助你找到标记过的位置。
模组
使用 JavaScript 编辑配方、添加自定义物品、编写世界事件!
模组
添加区块认领和玩家组队功能,并与 Xaero's Minimap 和 World Map 集成
模组
添加全屏世界地图,显示你在世界中已探索的区域。与 Xaero's Minimap 搭配使用效果极佳。
评论 0
登录后参与评分
还没有评论,来抢沙发吧