NetherLink
NetherLink 是一款基于好友联机功能的 Minecraft 模组。它提供了好友界面、好友请求、在线状态共享以及基于 WebRTC 的单玩家世界和专用服务器加入功能。
默认后端为 NLI API v1,由 NetherLink 托管。它处理好友关系、在线状态、信令以及 P2P 连接流程中使用的 TURN 凭据。
功能特性
- 添加带有以下内容的 NetherLink 好友界面:
- 好友列表
- 好友请求
- 好友/API 设置
- 玩家头像
- 可加入的实例显示
- 允许通过 NetherLink 将单玩家集成服务器向好友开放。
- 允许好友通过 WebRTC P2P 加入,当直接连接不可用时使用 TURN 作为回退方案。
- 支持专用服务器通过关联的 Minecraft 账号将自己发布为可加入的 NetherLink 实例。
- 支持从好友设置选项卡切换可用的链接后端。
客户端用法
- 在客户端安装 NetherLink。
- 启动 Minecraft 并使用 Microsoft/Minecraft 账号登录。
- 在主菜单/多人游戏界面中打开“好友”按钮以管理好友和请求。
- 在单玩家世界中,打开多人游戏分享界面。
- 选择 NetherLink 作为多人游戏范围并应用更改。
启用后,你的好友可以通过 NetherLink 查看并加入该世界。世界仍由你的客户端托管,因此当你离开世界或停止分享时,连接会断开。
首次使用 NLI 后端时可能会显示当前的服务条款。NLI 条款从配置的后端获取,已接受的条款存储在本地。
专用服务器用法
-
在服务器上安装 NetherLink。
-
可选:设置
NETHERLINK_CLIENT_ID如果你想使用自己的 Microsoft 身份验证应用 ID。 -
启动服务器并运行:
/nli add -
打开聊天或服务器控制台中显示的登录 URL,完成 Microsoft 身份验证,并等待 NetherLink 存储 Minecraft 账号。
-
检查配置的账号:
/nli list -
通过关联的账号发布服务器:
/nli publish
发布后,关联账号的好友应将服务器视为可加入的 NetherLink 实例。传入的 WebRTC 加入请求由 NetherLink 接受并路由到正在运行的服务器。
服务器命令
/nli add或/netherlink add:通过设备代码登录添加 Microsoft/Minecraft 账号。/nli list:显示配置的账号和令牌状态。/nli refresh [all|<name>]:刷新存储的账号令牌。/nli publish [all|<name>]:发布服务器在线状态并开始接受 P2P 加入。/nli revoke [all|<name>]:撤销服务器在线状态并停止接受 P2P 加入。/nli toggle <name>:启用或禁用某个账号。/nli remove <name>:移除存储的账号。
账号数据存储在 netherlink/accounts 下。将这些文件视为凭据;不要公开分享它们。
配置
客户端配置存储在 config/netherlink/ 下。
config.jsonactiveService:选定的后端,默认为netherlink:nli_v1。instanceName:发布当前世界/服务器实例时使用的可选名称。
nli-v1.jsonserver:NLI API 服务器 URL。默认为https://nli-api.muyucloud.cool。acceptedTerms:本地记录的已接受 NLI 条款版本。
活动后端也可以从好友设置选项卡中进行更改。
备注
- NetherLink 使用 Minecraft 账号身份信息用于好友和在线状态功能。该模组及其配套后端代码均为开源。
- NLI 的托管后端和 TURN 服务默认使用。
- 连接质量取决于双方玩家的网络状况,但 TURN 回退方案应使加入过程比仅尝试直接 P2P 更加可靠。
NetherLink
NetherLink is a Minecraft mod for friend-based online play. It provides a friends UI, friend requests, presence sharing, and WebRTC-based joining for single-player worlds and dedicated servers.
The default backend is NLI API v1, hosted by NetherLink. It handles friends, presence, signaling, and TURN credentials used by the P2P connection flow.
What it does
- Adds a NetherLink friends screen with:
- friend list
- friend requests
- friend/API settings
- player avatars
- joinable instance display
- Lets a single-player integrated server be opened to friends through NetherLink.
- Lets friends join through WebRTC P2P, with TURN fallback when direct connectivity is not available.
- Supports dedicated servers publishing themselves as joinable NetherLink instances through a linked Minecraft account.
- Supports switching between available link backends from the Friends settings tab.
Client usage
- Install NetherLink on the client.
- Launch Minecraft and sign in with a Microsoft/Minecraft account.
- Open the Friends button in the main/multiplayer UI to manage friends and requests.
- In a single-player world, open the multiplayer sharing screen.
- Select NetherLink as the multiplayer scope and apply the change.
When enabled, your friends can see and join the world through NetherLink. The world is still hosted by your client, so it closes when you leave the world or stop sharing it.
The first use of the NLI backend may show the current service terms. NLI terms are fetched from the configured backend and accepted terms are stored locally.
Dedicated server usage
-
Install NetherLink on the server.
-
Optional: set
NETHERLINK_CLIENT_IDif you want to use your own Microsoft authentication app id. -
Start the server and run:
/nli add -
Open the login URL shown in chat or the server console, complete Microsoft authentication, and wait for NetherLink to store the Minecraft account.
-
Check configured accounts:
/nli list -
Publish the server through the linked account:
/nli publish
After publishing, friends of the linked account should see the server as a joinable NetherLink instance. Incoming WebRTC join requests are accepted by NetherLink and routed into the running server.
Server commands
/nli addor/netherlink add: add a Microsoft/Minecraft account through device-code login./nli list: show configured accounts and token status./nli refresh [all|<name>]: refresh stored account tokens./nli publish [all|<name>]: publish server presence and start accepting P2P joins./nli revoke [all|<name>]: revoke server presence and stop accepting P2P joins./nli toggle <name>: enable or disable an account./nli remove <name>: remove a stored account.
Account data is stored under netherlink/accounts. Treat these files as credentials; do not share them publicly.
Configuration
Client configuration is stored under config/netherlink/.
config.jsonactiveService: selected backend, defaulting tonetherlink:nli_v1.instanceName: optional name used when publishing your current world/server instance.
nli-v1.jsonserver: NLI API server URL. Defaults tohttps://nli-api.muyucloud.cool.acceptedTerms: local record of accepted NLI terms revisions.
The active backend can also be changed from the Friends settings tab.
Notes
- NetherLink uses Minecraft account identity information for friend and presence features. The mod and companion backend code are open source.
- NLI's hosted backend and TURN service are used by default.
- Connection quality depends on both peers' networks, but TURN fallback should make joining more reliable than direct-only P2P attempts.
下载 NetherLink(NLI)
下载 NetherLink(NLI)
下载 NetherLink(NLI)
下载 NetherLink(NLI)
下载 NetherLink(NLI)
下载 NetherLink(NLI)
下载 NetherLink(NLI)
下载 NetherLink(NLI)
下载 NetherLink(NLI)
下载 NetherLink(NLI)
适配 Forge 补丁
关于这个资源的讨论、问题反馈与使用心得
还没有讨论,来发第一帖吧
你是这个资源的作者?登录后可认领此资源。
相似资源
模组
显示你正在注视的方块的信息。(适用于 Minecraft 1.16+ 的 Hwyla/Waila 分支)
模组
在游戏画面角落显示附近世界地形、玩家、生物和实体的地图。可创建路径点,帮助你找到标记过的位置。
模组
查看物品与配方
模组
使用 JavaScript 编辑配方、添加自定义物品、编写世界事件!
模组
AE2:一款流行的自动化与存储模组
模组
那是什么?一个 Waila/Hwyla 的分支。
评论 0
登录后参与评分
还没有评论,来抢沙发吧