Lan World Discord Integration
这是一个模组,允许用户将他们的单人/局域网世界或多玩家服务器链接到 Discord 服务器的一个频道中,只有主机需要安装此模组。
安装指南
安装模组
首先,将模组文件拖入你的模组文件夹。所有版本都需要 Fabric API。请使用 v0.16.14 或更高版本的 Fabric 版本。
如果你使用的是 Forge,请安装 Sinytra Connector 和 Forgified fabric api。
现在运行游戏,在配置文件夹中应生成一个名为 lan-world-discord-integration.toml 的文件:

完成此步骤后,你可以关闭 Minecraft 并开始设置 Discord 机器人。
Discord 机器人设置
- 在 Discord 开发者门户 中,点击新建应用程序。

然后勾选以下权限:

现在复制下面的链接并粘贴到新标签页中。

如果你无法将机器人添加到你的 Discord 服务器,可能是因为你没有在 Discord 服务器中获得 Manage Server(管理服务器)权限。
当你的机器人进入服务器后,接下来要在 Minecraft 中进行设置。
配置文件设置
前往开发者门户中的机器人页面,点击“重置令牌”(Reset Token):
然后复制它。
打开 lan-world-discord-integration.toml,像这样粘贴令牌,并确保保存文件。
现在前往你的 Discord 设置,在“高级”部分启用开发者模式。
进入你的服务器,右键单击你希望机器人所在的频道,然后点击“复制频道 ID”(Copy Channel Id)。
现在像这样将频道 ID 粘贴到 lan-world-discord-integration.toml 中,并确保保存文件。
现在你可以启动 Minecraft,一旦进入世界,机器人应该会自动开始运行。我保证将来会添加一个游戏内命令,允许用户手动启动和停止机器人。
正常运行后的效果如下所示:
现在享受你简单的 Minecraft-Discord 消息传递吧!
-BackslashTrash, 2025-07-25
Lan World Discord Integration
It is a mod that allows the user to link their singleplayer/lan world or a multiplayer server to a channel in a discord server, only the host should have this mod installed.
Installation Guide
Installing the mod
First, drag the mod file into your mod folder. Fabric api is required for all versions. Use fabric version v0.16.14 or above.
If you are using forge, install Sinytra Connector and Forgified fabric api.
Now run the game, a file with the name lan-world-discord-integration.toml should be generated in your config folder:

After this step, you can close Minecraft and start setting up the discord bot.
Discord Bot setup
- In discord developer portal, click new applications.

Then check the following permissions:

Now copy the link below and paste it in a new tab.

If you can't add the bot to your discord server, it could be because you don't have the Manage Server permission in your discord server.
After your bot is in your server, time to set it up in Minecraft.
Configuring the config file
Go to the bot page in developer portal and click Reset Token:
Then copy it.
Open lan-world-discord-integration.toml, paste the token in like this, make sure you save the file too.
Now go to your discord settings, in Advanced section, enable developer mode.
Go to your server and right click the channel you want the bot to be at, then click Copy Channel Id
Now paste the channel id in like this in lan-world-discord-integration.toml, make sure to save the file.
Now you can start Minecraft, once you enter a world, the bot should start automatically. I will add a command in game to allow the user to start and stop the bot in the future I promise.
This is what it should look like once it started running normally:
Now enjoy your simple Minecraft-Discord messenger!
-BackslashTrash, 2025-07-25
评论 0
登录后参与评分
还没有评论,来抢沙发吧